]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Thu, 10 Oct 2019 15:03:32 +0000 (16:03 +0100)
commitc6d657980c19641a33f691404e711d372f8ec09e
treede0df3f5c19bda714107288ae9a68ac27fe436c3
parent754e26f7769bbfd782d416f68f0eefd479fa691b
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>
src/pybind/mgr/dashboard/frontend/angular.json
src/pybind/mgr/dashboard/frontend/package.json