Fix Dutch translation (#4509)
After compiling + running the recently added Dutch translation I found it didn't work as I had forgotten to add nl to store.js. Now it is working.
This commit is contained in:
parent
8fd694ea47
commit
325cd0ec0b
@ -19,22 +19,25 @@ import { action, observable, transaction } from 'mobx';
|
||||
import { addLocaleData } from 'react-intl';
|
||||
import de from 'react-intl/locale-data/de';
|
||||
import en from 'react-intl/locale-data/en';
|
||||
import nl from 'react-intl/locale-data/nl';
|
||||
import store from 'store';
|
||||
|
||||
import { DEFAULT_LOCALE, DEFAULT_LOCALES, LS_STORE_KEY } from './constants';
|
||||
import languages from './languages';
|
||||
import deMessages from './de';
|
||||
import enMessages from './en';
|
||||
import nlMessages from './nl';
|
||||
|
||||
let instance = null;
|
||||
|
||||
const LANGUAGES = flatten({ languages });
|
||||
const MESSAGES = {
|
||||
de: Object.assign(flatten(deMessages), LANGUAGES),
|
||||
en: Object.assign(flatten(enMessages), LANGUAGES)
|
||||
en: Object.assign(flatten(enMessages), LANGUAGES),
|
||||
nl: Object.assign(flatten(nlMessages), LANGUAGES)
|
||||
};
|
||||
|
||||
addLocaleData([...de, ...en]);
|
||||
addLocaleData([...de, ...en, ...nl]);
|
||||
|
||||
export default class Store {
|
||||
@observable locale = DEFAULT_LOCALE;
|
||||
|
Loading…
Reference in New Issue
Block a user