{"repo":"sealninja/react-i18nify","free":true,"listed":false,"github":"https://github.com/sealninja/react-i18nify","clone":"git clone https://github.com/sealninja/react-i18nify.git","description":"Simple i18n translation and localization components and helpers for React.","language":"JavaScript","stars":154,"topics":["react","i18n","translation","localization","redux","javascript","flux"],"license":"MIT","category":"ui-components","readme_excerpt":"React I18nify Simple i18n translation and localization components and helpers for React. A working example of this package can be found here at RunKit. Migration guide Upgrading to v6 react-i18nify v6 uses dayjs for date localization instead of date-fns , to make react-i18nify smaller and simpler to use. Migrating to this version requires the following changes to your project: - Replace locale imports. E.g., import nl from 'date-fns/locale/nl'; needs to be replaced with import 'dayjs/locale/nl'; - Remove calls to addLocale and addLocales , these are not needed anymore. - Update date formatting strings. For example, MM-dd-yyyy is now MM-DD-YYYY . See for more information the day.js documentation. The v5 documentation can still be found here. Installation Install by using npm: Getting started Start by setting the translations and locale to be used: Now you're all set up to unleash the power of react-i18nify ! Components The easiest way to translate or localize in your React application is by using the Translate and Localize components: Helpers If for some reason, you cannot use the components, you can use the translate and localize helpers instead: If you want these helpers to be re-rendered automatically when the locale or translations change, you have to wrap them in a component using its render prop: Date localization react-i18nify uses day.js internally to handle date localization. To reduce the base bundle size, day.js localizations are not loaded by default. If you need d","default_branch":null,"files":null,"tree":[],"storefront":"/r/sealninja","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sealninja/react-i18nify/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}