Details
-
Type:
Improvement
-
Status: Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: UI Options
-
Labels:None
Description
Capturing issues from some conversation about SJRK-113 and FLUID-6198...
1) Locale-related code is concentrated in a few places in Infusion such as the resourceLoader and preferencesFramework grades. They aren't necessarily completely aligned in how they think about locale.
2) Right now, locale is typically treated as a fixed member of the components - it's presumed to be set at component initialization and then not otherwise modified. As we've found as part of the SJRK work, this is not necessarily a valid way of thinking about locales.
3) Locale-related code is a natural candidate for contextAwareness features such as:
- Tracking default browser preferred language (as related by https://developer.mozilla.org/en-US/docs/Web/API/NavigatorLanguage/language)
- Tracking user-initiated changes to language, such as through a UIO panel, or a language switcher on the page
Thus, proposed that we should eventually:
- create a locale-aware component using contextAwareness features that can be used by any other component wanting to implement locale-based features
- this component would act as a point of access to the following "information"
- the browser's preferred locale
- a user-initiated current locale that might be the same or different as #1
- an event containing information about changes to the state of #2
Attachments
Issue Links
- relates to
-
FLUID-6304 Make it possible to exclude certain panels based on locale
-
- Open
-