i18n: Switch to .json extension
This commit is contained in:
parent
7e8ef90fb4
commit
9e8404db11
3
app.js
3
app.js
@ -42,7 +42,8 @@ app.use(session(sess));
|
||||
i18n.expressBind(app, {
|
||||
locales: ['en', 'es', 'fr', 'de'],
|
||||
defaultLocale: 'en',
|
||||
cookieName: 'locale'
|
||||
cookieName: 'locale',
|
||||
extension: '.json'
|
||||
});
|
||||
|
||||
app.use(function (req, res, next) {
|
||||
|
@ -1,4 +0,0 @@
|
||||
{
|
||||
"Home": "Inicio",
|
||||
"About": "Acerca de",
|
||||
}
|
4
locales/es.json
Normal file
4
locales/es.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"Home": "Inicio",
|
||||
"About": "Acerca de"
|
||||
}
|
Loading…
Reference in New Issue
Block a user