UNPKG

react-cimpress-comment

Version:

Visualizes comment(s) for a particular platform resource

50 lines (35 loc) 1.25 kB
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.getI18nInstance = undefined; var _i18next = require('i18next'); var _i18next2 = _interopRequireDefault(_i18next); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var i18nInstance = null; function getI18nInstance() { if (!i18nInstance) { i18nInstance = _i18next2.default.createInstance(); i18nInstance.init({ fallbackLng: 'en', resources: { en: require('../locales/react-cimpress-comments.en'), de: require('../locales/react-cimpress-comments.de'), fr: require('../locales/react-cimpress-comments.fr'), it: require('../locales/react-cimpress-comments.it'), nl: require('../locales/react-cimpress-comments.nl') }, ns: ['translations'], defaultNS: 'translations', debug: false, interpolation: { escapeValue: false // not needed for react!! }, react: { wait: true } }); } return i18nInstance; } exports.getI18nInstance = getI18nInstance;