summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Cheng-Han2016-10-21 13:39:28 +0800
committerWu Cheng-Han2016-10-21 13:39:28 +0800
commit215b5baa9fd81a3d7e41e75e0a5fb9efb3e66cd7 (patch)
treefc13cbe30ee175013b5ccdb48d702b89169c5066
parent209534993addb8e8c369e2ec9539e0f9439b474b (diff)
Update to support Swedish locale
Diffstat (limited to '')
-rw-r--r--app.js2
-rw-r--r--locales/sv.json (renamed from locales/sv_SE.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 9e4d54e7..0c66cc27 100644
--- a/app.js
+++ b/app.js
@@ -95,7 +95,7 @@ app.use(helmet.hsts({
}));
i18n.configure({
- locales: ['en', 'zh', 'fr', 'de', 'ja', 'es', 'el', 'pt', 'it', 'tr', 'ru', 'nl', 'hr', 'pl', 'uk', 'hi'],
+ locales: ['en', 'zh', 'fr', 'de', 'ja', 'es', 'el', 'pt', 'it', 'tr', 'ru', 'nl', 'hr', 'pl', 'uk', 'hi', 'sv'],
cookie: 'locale',
directory: __dirname + '/locales'
});
diff --git a/locales/sv_SE.json b/locales/sv.json
index c1d89bd1..c1d89bd1 100644
--- a/locales/sv_SE.json
+++ b/locales/sv.json
diff --git a/public/views/index.ejs b/public/views/index.ejs
index e97f9385..4d12a630 100644
--- a/public/views/index.ejs
+++ b/public/views/index.ejs
@@ -164,6 +164,7 @@
<option value="pl">język polski</option>
<option value="uk">Українська</option>
<option value="hi">हिन्दी</option>
+ <option value="sv">svenska</option>
</select>
</div>
</div>