mattermost-mobile/service/i18n/index.js
enahum e2f3f7b803 project folder structure (#107)
* project folder structure

* Moving store to be called from app folder
2016-12-09 10:34:17 -05:00

18 lines
359 B
JavaScript

// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import 'intl';
import en from './en.json';
import es from './es.json';
const DEFAULT_LOCALE = 'en';
const TRANSLATIONS = {
en,
es
};
export function getTranslations(locale) {
return TRANSLATIONS[locale] || TRANSLATIONS[DEFAULT_LOCALE];
}