diff options
author | Wu Cheng-Han | 2016-10-21 13:39:28 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-10-21 13:39:28 +0800 |
commit | 215b5baa9fd81a3d7e41e75e0a5fb9efb3e66cd7 (patch) | |
tree | fc13cbe30ee175013b5ccdb48d702b89169c5066 | |
parent | 209534993addb8e8c369e2ec9539e0f9439b474b (diff) |
Update to support Swedish locale
Diffstat (limited to '')
-rw-r--r-- | app.js | 2 | ||||
-rw-r--r-- | locales/sv.json (renamed from locales/sv_SE.json) | 0 | ||||
-rw-r--r-- | public/views/index.ejs | 1 |
3 files changed, 2 insertions, 1 deletions
@@ -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> |