Some basic components for building forms.
This commit is contained in:
parent
d13fc65ce2
commit
4504d539c5
22 changed files with 827 additions and 246 deletions
29
client/src/lib/i18n.js
Normal file
29
client/src/lib/i18n.js
Normal file
|
@ -0,0 +1,29 @@
|
|||
import i18n from 'i18next';
|
||||
import XHR from 'i18next-xhr-backend';
|
||||
// import Cache from 'i18next-localstorage-cache';
|
||||
|
||||
i18n
|
||||
.use(XHR)
|
||||
// .use(Cache)
|
||||
.init({
|
||||
lng: 'en', // FIXME set language from mailtrain (ideally from react-root.hbs)
|
||||
|
||||
wait: true, // globally set to wait for loaded translations in translate hoc
|
||||
|
||||
// have a common namespace used around the full app
|
||||
ns: ['common'],
|
||||
defaultNS: 'common',
|
||||
|
||||
debug: true,
|
||||
|
||||
// cache: {
|
||||
// enabled: true
|
||||
// },
|
||||
|
||||
interpolation: {
|
||||
escapeValue: false // not needed for react
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
export default i18n;
|
Loading…
Add table
Add a link
Reference in a new issue