mirror of
https://github.com/discourse/discourse.git
synced 2026-08-10 04:58:31 -05:00
UX: Fallback locale warning improvements. (#11775)
- Improve warning message. - Only display the warning if the language has a fallback and either "allow_user_locale", or "set_locale_from_accept_language_header" are enabled.
This commit is contained in:
@@ -42,6 +42,15 @@ export default Controller.extend({
|
||||
}
|
||||
},
|
||||
|
||||
@discourseComputed("locale")
|
||||
showFallbackLocaleWarning() {
|
||||
return (
|
||||
(this.siteSettings.allow_user_locale ||
|
||||
this.siteSettings.set_locale_from_accept_language_header) &&
|
||||
this.fallbackLocaleFullName
|
||||
);
|
||||
},
|
||||
|
||||
actions: {
|
||||
edit(siteText) {
|
||||
this.transitionToRoute("adminSiteText.edit", siteText.get("id"), {
|
||||
|
||||
Reference in New Issue
Block a user