unis_crm/frontend1/node_modules/react-i18next/dist/es/defaults.js

19 lines
493 B
JavaScript

import { unescape } from './unescape.js';
let defaultOptions = {
bindI18n: 'languageChanged',
bindI18nStore: '',
transEmptyNodeValue: '',
transSupportBasicHtmlNodes: true,
transWrapTextNodes: '',
transKeepBasicHtmlNodesFor: ['br', 'strong', 'i', 'p'],
useSuspense: true,
unescape,
transDefaultProps: undefined
};
export const setDefaults = (options = {}) => {
defaultOptions = {
...defaultOptions,
...options
};
};
export const getDefaults = () => defaultOptions;