Update to support Swedish locale

This commit is contained in:
Wu Cheng-Han 2016-10-21 13:39:28 +08:00
parent 209534993a
commit 215b5baa9f
3 changed files with 2 additions and 1 deletions

2
app.js
View file

@ -95,7 +95,7 @@ app.use(helmet.hsts({
})); }));
i18n.configure({ 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', cookie: 'locale',
directory: __dirname + '/locales' directory: __dirname + '/locales'
}); });

View file

@ -164,6 +164,7 @@
<option value="pl">język polski</option> <option value="pl">język polski</option>
<option value="uk">Українська</option> <option value="uk">Українська</option>
<option value="hi">हिन्दी</option> <option value="hi">हिन्दी</option>
<option value="sv">svenska</option>
</select> </select>
</div> </div>
</div> </div>