stable

Clone or download

Read-only

Introduce gettext in Taskboard

The under construction message is now localized. There is an helper to instantiate GettextPlugin, it loads translations dynamically and asynchronously. This helper is located in the source of taskboard, but can easily be moved in a more central place so that it can be used by other Typescript-Vue app. My knowledge of Jest + Typescript + Vue is not good enough to be able to produce unit tests for this helper. I suggest to add them later, for example when we will move it. Part of story #13729: have taskboard empty state Change-Id: I1392c1db7e9aeedc0c824851286a12a403f7cd2b

Modified Files

Name
M plugins/taskboard/build-manifest.json +6 −0 Go to diff View file
M plugins/taskboard/scripts/package-lock.json +5 −0 Go to diff View file
M plugins/taskboard/scripts/package.json +2 −1 Go to diff View file
M plugins/taskboard/scripts/taskboard/index.ts +6 −1 Go to diff View file
A plugins/taskboard/scripts/taskboard/po/fr_FR.po +15 −0 Go to diff View file
M plugins/taskboard/scripts/taskboard/src/components/App.vue +3 −1 Go to diff View file
A plugins/taskboard/scripts/taskboard/src/helpers/vue-gettext-init.ts +45 −0 Go to diff View file
M plugins/taskboard/scripts/tsconfig.json +1 −1 Go to diff View file