react-i18next
Version:
Internationalization for react done right. Using the i18next i18n ecosystem.
18 lines • 461 B
JavaScript
import { unescape } from './unescape.js';
let defaultOptions = {
bindI18n: 'languageChanged',
bindI18nStore: '',
transEmptyNodeValue: '',
transSupportBasicHtmlNodes: true,
transWrapTextNodes: '',
transKeepBasicHtmlNodesFor: ['br', 'strong', 'i', 'p'],
useSuspense: true,
unescape
};
export const setDefaults = (options = {}) => {
defaultOptions = {
...defaultOptions,
...options
};
};
export const getDefaults = () => defaultOptions;