How to use webiny-i18n - 3 common examples

To help you get started, we’ve selected a few webiny-i18n examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github webiny / webiny-js / packages / webiny-app / bkp / utils / i18n.js View on Github external
// @flow
import { I18n, defaultProcessor } from "webiny-i18n";
import reactProcessor from "webiny-i18n-react";

const i18n = new I18n();
i18n.registerProcessors([defaultProcessor, reactProcessor]);
export default i18n;
github webiny / webiny-js / packages / webiny-app / src / i18n / i18n.js View on Github external
// @flow
import i18n, { defaultProcessor, defaultModifiers } from "webiny-i18n";
import reactProcessor from "webiny-i18n-react";

i18n.registerProcessors([defaultProcessor, reactProcessor]);
i18n.registerModifiers(defaultModifiers);

export default i18n;
github webiny / webiny-js / packages / webiny-app / src / i18n / i18n.js View on Github external
// @flow
import i18n, { defaultProcessor, defaultModifiers } from "webiny-i18n";
import reactProcessor from "webiny-i18n-react";

i18n.registerProcessors([defaultProcessor, reactProcessor]);
i18n.registerModifiers(defaultModifiers);

export default i18n;

webiny-i18n

[![](https://img.shields.io/npm/dw/webiny-i18n.svg)](https://www.npmjs.com/package/webiny-i18n) [![](https://img.shields.io/npm/v/webiny-i18n.svg)](https://www.npmjs.com/package/webiny-i18n) [![code style: prettier](https://img.shields.io/badge/code_styl

MIT
Latest version published 5 years ago

Package Health Score

66 / 100
Full package analysis

Similar packages