[MGNLUI-3067] Provide method to get the default locale for a specific node in I18NAuthoringSupport Created: 16/Jul/14  Updated: 05/Dec/14  Resolved: 17/Jul/14

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 5.2.6, 5.3.1
Fix Version/s: 5.2.7, 5.3.2

Type: Bug Priority: Neutral
Reporter: Philip Mundt Assignee: Philip Mundt
Resolution: Fixed Votes: 0
Labels: i18n
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to MGNLUI-3068 Add method getDefaultLocale(Node node... Closed
dependency
is depended upon by MULTISITE-22 Edit mode locale selector is not popu... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

It is currently not possible to get a node-specific default Locale from I18nContentSupport outside of the AggregationState (i.e. in the PageEditor/UI) without having a dependency to STK (to access the SiteManager).

We should add a public method to DefaultI18NAuthoringSupport to access the default, configured Locale:

public Locale getDefaultLocale(Node node)

To not break the API and maintain binary compatibility the method should be added to info.magnolia.ui.api.i18n.I18NAuthoringSupport only in a major release (see MGNLUI-3068).


Generated at Mon Feb 12 09:02:54 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.