aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorHonza Pokorny <honza@redhat.com>2017-03-07 14:57:09 -0400
committerHonza Pokorny <honza@redhat.com>2017-03-30 06:53:50 -0300
commit60db285fd59eb36bca9d3a209c945e4f23412b3b (patch)
treee631cb46369549ca2cd57a4a83654efac710db14 /templates
parent0d15f1de5ab762ff87f2d3e57a2fec886e6f1f47 (diff)
Refactor enabled languages from an array to a hash
Change-Id: I5173361818508849e5012a943a984af69d9d08cd Depends-On: I2d28d9019e8bcf9f6b8ef5698958932d44321679 Closes-Bug: #1668978
Diffstat (limited to 'templates')
-rw-r--r--templates/ui/tripleo_ui_config.js.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/ui/tripleo_ui_config.js.erb b/templates/ui/tripleo_ui_config.js.erb
index c984cc3..f179637 100644
--- a/templates/ui/tripleo_ui_config.js.erb
+++ b/templates/ui/tripleo_ui_config.js.erb
@@ -18,7 +18,7 @@ window.tripleOUiConfig = {
// If you choose more than one language, a language switcher will appear in
// the navigation bar.
// Only 'en' (English) is enabled by default.
- 'languages': ['<%= @enabled_languages.join("', '") %>'],
+ 'languages': <%= @enabled_languages.to_json %>,
// Logging
// 'loggers': ['console']