Skip to content

Conversation

@jason-p-pickering
Copy link
Contributor

Summary:

Updated resource bundle locale parsing to use Locale.of(...) and made bundle lookup treat script as the Java variant so that more exotic translations like i18n_global_uz_UZ_Cyrl.properties resolves correctly. Added tests for Uzbek Cyrillic/Latin resource bundle resolution.

@jason-p-pickering jason-p-pickering changed the base branch from master to DHIS2-20731-locale January 22, 2026 09:50
@jason-p-pickering jason-p-pickering changed the base branch from DHIS2-20731-locale to DHIS2-20731-languageTag January 22, 2026 09:51
@sonarqubecloud
Copy link

@jason-p-pickering jason-p-pickering requested a review from a team January 22, 2026 09:58
Base automatically changed from DHIS2-20731-languageTag to DHIS2-20731-locale January 22, 2026 10:02
@jason-p-pickering jason-p-pickering merged commit b913d7d into DHIS2-20731-locale Jan 22, 2026
11 checks passed
@jason-p-pickering jason-p-pickering deleted the DHIS2-20731-resourcebundle branch January 22, 2026 10:02
jbee added a commit that referenced this pull request Jan 22, 2026
* feat: DHIS2 own locale class

* chore: switch to DHIS2 Locale class

* fix: failing tests, handle outdates codes

* fix: mark region as nullable for more convinience as it is nullable

* fix: unit tests

* feat: Add script to locale controller (#22820)

* Fix locale controller

* Remove duplicative validation code

* Add language tag to locales (#22822)

* fix: Correctly resolve resource bundle (#22823)

* Add language tag to locales

* Fix resource bundle handling

* Linting

---------

Co-authored-by: Jason Pickering <[email protected]>
jbee added a commit that referenced this pull request Jan 22, 2026
* feat: DHIS2 own locale class

* chore: switch to DHIS2 Locale class

* fix: failing tests, handle outdates codes

* fix: mark region as nullable for more convinience as it is nullable

* fix: unit tests

* feat: Add script to locale controller (#22820)

* Fix locale controller

* Remove duplicative validation code

* Add language tag to locales (#22822)

* fix: Correctly resolve resource bundle (#22823)

* Add language tag to locales

* Fix resource bundle handling

* Linting

---------

Co-authored-by: Jason Pickering <[email protected]>
jbee added a commit that referenced this pull request Jan 22, 2026
* feat: Use DHIS2 specific Locale class (#22819)

* feat: DHIS2 own locale class

* chore: switch to DHIS2 Locale class

* fix: failing tests, handle outdates codes

* fix: mark region as nullable for more convinience as it is nullable

* fix: unit tests

* feat: Add script to locale controller (#22820)

* Fix locale controller

* Remove duplicative validation code

* Add language tag to locales (#22822)

* fix: Correctly resolve resource bundle (#22823)

* Add language tag to locales

* Fix resource bundle handling

* Linting

---------

Co-authored-by: Jason Pickering <[email protected]>

* fix: imports

---------

Co-authored-by: Jason Pickering <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants