Skip to content

feat: load custom translations from datastore#950

Merged
KaiVandivier merged 11 commits intoalphafrom
feat-translation-packs
Mar 2, 2026
Merged

feat: load custom translations from datastore#950
KaiVandivier merged 11 commits intoalphafrom
feat-translation-packs

Conversation

@KaiVandivier
Copy link
Contributor

@KaiVandivier KaiVandivier commented Jan 26, 2026

LIBS-773

If custom translations are enabled (dhis2/dhis2-core#23106), fetches translations in the form of JSON from the datastore and adds them to i18n translation bundles. Awaits the result to avoid a race condition.

Before adding translations:
tranlsations-before

After adding translations:
translations-after

@KaiVandivier KaiVandivier changed the base branch from master to alpha March 2, 2026 19:57
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 2, 2026

@KaiVandivier KaiVandivier marked this pull request as ready for review March 2, 2026 20:13
@KaiVandivier KaiVandivier merged commit e0e616f into alpha Mar 2, 2026
14 checks passed
@KaiVandivier KaiVandivier deleted the feat-translation-packs branch March 2, 2026 20:22
dhis2-bot added a commit that referenced this pull request Mar 2, 2026
# [12.11.0-alpha.1](v12.10.4...v12.11.0-alpha.1) (2026-03-02)

### Features

* load custom translations from datastore ([#950](#950)) ([e0e616f](e0e616f))
dhis2-bot added a commit that referenced this pull request Mar 2, 2026
# [12.11.0-alpha.1](v12.10.4...v12.11.0-alpha.1) (2026-03-02)

### Features

* load custom translations from datastore ([#950](#950)) ([e0e616f](e0e616f))
dhis2-bot added a commit that referenced this pull request Mar 2, 2026
# [12.11.0-alpha.1](v12.10.4...v12.11.0-alpha.1) (2026-03-02)

### Features

* load custom translations from datastore ([#950](#950)) ([e0e616f](e0e616f))
dhis2-bot added a commit that referenced this pull request Mar 2, 2026
# [12.11.0-alpha.1](v12.10.4...v12.11.0-alpha.1) (2026-03-02)

### Features

* load custom translations from datastore ([#950](#950)) ([e0e616f](e0e616f))
KaiVandivier added a commit that referenced this pull request Mar 2, 2026
* feat: add urlSlug (d2config.name) to app config

* feat: check datastore for custom translations

* refactor: update DHIS2 locale parsing comments

* refactor: move custom translations to new file

* fix: use data engine for better control flow

* fix: check custom translations setting (wip), await datastore result

* refactor: double underscore for format

* fix: check system settings before fetching translations

* refactor: use debug instead of log

* refactor: sonarqube recommendations

* fix: version check and tests
dhis2-bot added a commit that referenced this pull request Mar 2, 2026
# [12.11.0-beta.1](v12.10.4...v12.11.0-beta.1) (2026-03-02)

### Features

* load custom translations from datastore ([#950](#950)) ([6053917](6053917))
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.

1 participant