stable

Clone or download

Read-only

fix: TestPlan crash in pt_BR language

`vue3-gettext` expect no keys for untranslated strings: see corresponding test and its feature. * https://github.com/jshmrtn/vue3-gettext/blob/v2.2.1/tests/translate.spec.ts#L36-L37 * https://github.com/jshmrtn/vue3-gettext/blob/v2.2.1/tests/json/translate.ts#L26-L48 Therefore we need to adapt our code for Vue3 apps to prune untranslated strings before providing translation catalog. To test: * Edit `/etc/tuleap/conf/local.inc` to add `pt_BR` in supported languages * Switch your account to "Português brasileiro" * Load test plan. * ➡️ app should not crash * ➡️ untranslated strings should be displayed in default en_US Part of request #26745: Add Brazilian Portuguese contribution Change-Id: Ia3e8f146910c9d2f30943b9df01c74bff7641304

Modified Files

Name
M lib/frontend/vue3-gettext-init/src/main.test.ts +9 −1 Go to diff View file
M lib/frontend/vue3-gettext-init/src/main.ts +3 −1 Go to diff View file