]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Allow I18N when using "ng serve"
authorTiago Melo <tmelo@suse.com>
Mon, 7 Oct 2019 17:25:13 +0000 (17:25 +0000)
committerRicardo Dias <rdias@suse.com>
Tue, 15 Oct 2019 10:46:15 +0000 (11:46 +0100)
commitda9e8c65ffcc4ec6fb4fe879533a0f033eee516a
tree49b0ce39e8772a27bf2c4b60cd064018a4fe7878
parent40852085f637e84264962149d806beaaefbedd49
mgr/dashboard: Allow I18N when using "ng serve"

"ng serve" doesn't support i18n flags, so we need to define all language
specific settings in angular.json.

Then we can use them with the configuration flag, p.e.:
"ng serve --configuration=pt-BR"

We can also use this configurations for non production build, p.e.:
"ng build --configuration=pt-BR"

Set some global options, that will be shared by all configurations.

Signed-off-by: Tiago Melo <tmelo@suse.com>
(cherry picked from commit c6d657980c19641a33f691404e711d372f8ec09e)
src/pybind/mgr/dashboard/frontend/angular.json
src/pybind/mgr/dashboard/frontend/package.json