Switch to unified view
a | b/backend/lib/i18n/index.js | ||
---|---|---|---|
1 | 'use strict'; |
||
2 | |||
3 | var i18n = require('i18n'); |
||
4 | |||
5 | i18n.configure( |
||
6 | { |
||
7 | defaultLocale: 'en', |
||
8 | locales: ['en', 'fr', 'vi'], |
||
9 | directory: __dirname + '/locales', |
||
10 | updateFiles: false, |
||
11 | indent: ' ', |
||
12 | extension: '.json', |
||
13 | cookie: 'locale' |
||
14 | } |
||
15 | ); |
||
16 | |||
17 | module.exports = function(dependencies) { |
||
18 | return i18n; |
||
19 | }; |