Add support of Italian, Turkish, Russian, Dutch, Croatian, Polish locales

This commit is contained in:
Wu Cheng-Han 2016-10-10 16:29:40 +08:00
parent bf4c6d021c
commit 4c9dc5fa1f
2 changed files with 7 additions and 1 deletions

2
app.js
View file

@ -94,7 +94,7 @@ app.use(helmet.hsts({
}));
i18n.configure({
locales: ['en', 'zh', 'fr', 'de', 'ja', 'es', 'el', 'pt'],
locales: ['en', 'zh', 'fr', 'de', 'ja', 'es', 'el', 'pt', 'it', 'tr', 'ru', 'nl', 'hr', 'pl'],
cookie: 'locale',
directory: __dirname + '/locales'
});

View file

@ -154,6 +154,12 @@
<option value="es">Español</option>
<option value="el">Ελληνικά</option>
<option value="pt">Português</option>
<option value="it">italiano</option>
<option value="tr">Türkçe</option>
<option value="ru">Русский</option>
<option value="nl">Nederlands</option>
<option value="hr">hrvatski jezik</option>
<option value="pl">język polski</option>
</select>
</div>
</div>