FEATURE: add language picker for theme translations in admin UI (#26150)

Allows editing translations of a theme in locales other than the current localy.
This commit is contained in:
Gabriel Grubba
2024-03-18 17:00:28 +01:00
committed by GitHub
parent 5023ff480e
commit 8ae462c724
10 changed files with 357 additions and 4 deletions

View File

@ -233,6 +233,7 @@ Discourse::Application.routes.draw do
constraints: AdminConstraint.new do
member do
get "preview" => "themes#preview"
get "translations/:locale" => "themes#get_translations"
put "setting" => "themes#update_single_setting"
end
collection do