summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJulie Pichon <jpichon@redhat.com>2017-02-10 14:30:26 +0000
committerJulie Pichon <jpichon@redhat.com>2017-02-17 13:11:08 +0000
commit053ee06787539f6da07985968d6c3b0194e56008 (patch)
treeb6450dd3af1df83264835d1c52e247fce8aef6b5 /templates
parentff362ebea83fd6e91421941dcea9b294e00c4024 (diff)
Enable languages in UI config
Which language options to offer to the UI users is determined in the configuration file. Let's show all possible languages by default, unless specified otherwise. Change-Id: I513303bf82dca53e2291ab66f2385a2985a1846e Related-Bug: #1663279
Diffstat (limited to 'templates')
-rw-r--r--templates/ui/tripleo_ui_config.js.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/ui/tripleo_ui_config.js.erb b/templates/ui/tripleo_ui_config.js.erb
index d49fe8e..c984cc3 100644
--- a/templates/ui/tripleo_ui_config.js.erb
+++ b/templates/ui/tripleo_ui_config.js.erb
@@ -12,13 +12,13 @@ window.tripleOUiConfig = {
'zaqar-websocket': '<%= @endpoint_config_zaqar %>',
// Default websocket queue name
- 'zaqar_default_queue': '<%= @zaqar_default_queue %>'
+ 'zaqar_default_queue': '<%= @zaqar_default_queue %>',
// Languages
// If you choose more than one language, a language switcher will appear in
// the navigation bar.
// Only 'en' (English) is enabled by default.
- // 'languages': ['en-GB', 'en', 'ja', 'ko-KR', 'zh-CN', 'es'],
+ 'languages': ['<%= @enabled_languages.join("', '") %>'],
// Logging
// 'loggers': ['console']