From 325cd0ec0b091dc20273d38a5e592462e1818188 Mon Sep 17 00:00:00 2001 From: Bas Date: Fri, 10 Feb 2017 14:52:36 +0100 Subject: [PATCH] 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. --- js/src/i18n/store.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/src/i18n/store.js b/js/src/i18n/store.js index 559f863d7..43e580dd8 100644 --- a/js/src/i18n/store.js +++ b/js/src/i18n/store.js @@ -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;