Add support of Catalan locale

This commit is contained in:
Wu Cheng-Han 2017-03-20 14:52:25 +08:00
parent afc4f269bc
commit 7989b89591
2 changed files with 2 additions and 1 deletions

2
app.js
View file

@ -113,7 +113,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', 'sv', 'eo'], locales: ['en', 'zh', 'fr', 'de', 'ja', 'es', 'ca', 'el', 'pt', 'it', 'tr', 'ru', 'nl', 'hr', 'pl', 'uk', 'hi', 'sv', 'eo'],
cookie: 'locale', cookie: 'locale',
directory: path.join(__dirname, '/locales') directory: path.join(__dirname, '/locales')
}) })

View file

@ -135,6 +135,7 @@
<option value="de">Deutsch</option> <option value="de">Deutsch</option>
<option value="ja">日本語</option> <option value="ja">日本語</option>
<option value="es">Español</option> <option value="es">Español</option>
<option value="ca">Català</option>
<option value="el">Ελληνικά</option> <option value="el">Ελληνικά</option>
<option value="pt">Português</option> <option value="pt">Português</option>
<option value="it">italiano</option> <option value="it">italiano</option>