aboutsummaryrefslogtreecommitdiffstats
path: root/src/i18n/translations.js
blob: 161a172ba29d6f541ca20839046f99cf8402b3eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { APP_LOCALES } from './languages';

const translations = [];
Object.keys(APP_LOCALES).forEach((key) => {
  try {
    const translation = require(`./locales/${key}.json`); // eslint-disable-line
    translations[key] = translation;
  } catch (err) {
    console.warn(`Can't find translations for ${key}`);
  }
});

module.exports = translations;