Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// @flow
import { I18n, defaultProcessor } from "webiny-i18n";
import reactProcessor from "webiny-i18n-react";
const i18n = new I18n();
i18n.registerProcessors([defaultProcessor, reactProcessor]);
export default i18n;
// @flow
import i18n, { defaultProcessor, defaultModifiers } from "webiny-i18n";
import reactProcessor from "webiny-i18n-react";
i18n.registerProcessors([defaultProcessor, reactProcessor]);
i18n.registerModifiers(defaultModifiers);
export default i18n;
// @flow
import i18n, { defaultProcessor, defaultModifiers } from "webiny-i18n";
import reactProcessor from "webiny-i18n-react";
i18n.registerProcessors([defaultProcessor, reactProcessor]);
i18n.registerModifiers(defaultModifiers);
export default i18n;