]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Only show available languages
authorTiago Melo <tmelo@suse.com>
Wed, 2 Oct 2019 11:06:23 +0000 (11:06 +0000)
committerRicardo Dias <rdias@suse.com>
Tue, 15 Oct 2019 10:46:15 +0000 (11:46 +0100)
commit9e8f894772f24f938445bee8aed4be5075fee92c
tree2cc27adbeae1ab97b612b6ad1a041249e3847583
parentcfd30d809361f5d0de28d3820ec3e2abb6645b16
mgr/dashboard: Only show available languages

Read locale from LOCALE_ID, this is defined during build.

Signed-off-by: Tiago Melo <tmelo@suse.com>
(cherry picked from commit 50f10a9420af89cf8b8462af7a711612e7757b3b)

Conflicts:
  src/pybind/mgr/dashboard/frontend/src/app/locale.helper.ts removed the file
  src/pybind/mgr/dashboard/frontend/src/app/shared/components/language-selector/language-selector.component.ts
  kept changes of cherry picked commit and added the "reloadWindow"
  method from commit 7f7f8a443c820f3c77a6f267939c33891342a561
src/pybind/mgr/dashboard/frontend/src/app/locale.helper.ts [deleted file]
src/pybind/mgr/dashboard/frontend/src/app/shared/components/language-selector/language-selector.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/language.service.spec.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/shared/services/language.service.ts [new file with mode: 0644]