mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 23:31:18 +08:00
FIX: Locale mismatch at theme translations picker (#26687)
* FIX: Locale mismatch at theme translations picker Before, the theme translations picker value was set to the site's default locale, which mismatches from the user's locale. This commit changes the picker value to the user locale. relates to https://meta.discourse.org/t/locale-mismatch-at-theme-translations/302879 * DEV: Address code review feedback. - https://github.com/discourse/discourse/pull/26687#discussion_r1572516758 - https://github.com/discourse/discourse/pull/26687#discussion_r1572524059
This commit is contained in:
@ -302,7 +302,11 @@ export default class AdminCustomizeThemesShowController extends Controller {
|
||||
}
|
||||
|
||||
get locale() {
|
||||
return this.get("model.locale") || this.siteSettings.default_locale;
|
||||
return (
|
||||
this.get("model.locale") ||
|
||||
this.userLocale ||
|
||||
this.siteSettings.default_locale
|
||||
);
|
||||
}
|
||||
|
||||
@action
|
||||
|
Reference in New Issue
Block a user