summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Cheng-Han2016-10-10 19:48:05 +0800
committerWu Cheng-Han2016-10-10 19:48:05 +0800
commita5e6b5dd3b661052956f72bbeab88931e7c74315 (patch)
tree7fed6e36f865a3ef27d65621c2f4ac8cc9b474dd
parentdae4f1eed1059d551fbdc709c400901c3fae2174 (diff)
Update to support Ukrainian locale
-rw-r--r--app.js2
-rw-r--r--locales/uk.json (renamed from locales/ua.json)0
-rw-r--r--public/views/index.ejs1
3 files changed, 2 insertions, 1 deletions
diff --git a/app.js b/app.js
index 586313f3..b3473a13 100644
--- a/app.js
+++ b/app.js
@@ -94,7 +94,7 @@ app.use(helmet.hsts({
}));
i18n.configure({
- locales: ['en', 'zh', 'fr', 'de', 'ja', 'es', 'el', 'pt', 'it', 'tr', 'ru', 'nl', 'hr', 'pl'],
+ locales: ['en', 'zh', 'fr', 'de', 'ja', 'es', 'el', 'pt', 'it', 'tr', 'ru', 'nl', 'hr', 'pl', 'uk'],
cookie: 'locale',
directory: __dirname + '/locales'
});
diff --git a/locales/ua.json b/locales/uk.json
index 0afc8796..0afc8796 100644
--- a/locales/ua.json
+++ b/locales/uk.json
diff --git a/public/views/index.ejs b/public/views/index.ejs
index 561a5987..1e0fe3f4 100644
--- a/public/views/index.ejs
+++ b/public/views/index.ejs
@@ -160,6 +160,7 @@
<option value="nl">Nederlands</option>
<option value="hr">hrvatski jezik</option>
<option value="pl">język polski</option>
+ <option value="uk">Українська</option>
</select>
</div>
</div>