react-i18nify
Advanced tools
Comparing version 4.1.3 to 4.1.4
const React = require('react'); | ||
const ReactDOM = require('react-dom/server'); | ||
const dateFnsNl = require('date-fns/locale/nl') | ||
@@ -13,3 +14,3 @@ let ReactI18nfiy = null; | ||
const { | ||
setTranslations, setLocale, setHandleMissingTranslation, translate, localize, Translate, Localize, I18n, | ||
addLocales, setTranslations, setLocale, setHandleMissingTranslation, translate, localize, Translate, Localize, I18n, | ||
} = ReactI18nfiy; | ||
@@ -44,2 +45,3 @@ | ||
addLocales({ nl: dateFnsNl }); | ||
setLocale('nl'); | ||
@@ -50,3 +52,2 @@ | ||
console.log(translate('export', { count: 0 })); | ||
console.log(translate('application.unknown_translation')); | ||
console.log(translate('application', { name: 'Aad' })); | ||
@@ -53,0 +54,0 @@ |
{ | ||
"name": "react-i18nify", | ||
"version": "4.1.3", | ||
"version": "4.1.4", | ||
"description": "Simple i18n translation and localization components and helpers for React.", | ||
@@ -54,6 +54,7 @@ "main": "./build/index.js", | ||
"@babel/cli": "^7.15.4", | ||
"@babel/core": "^7.15.4", | ||
"@babel/core": "^7.15.5", | ||
"@babel/plugin-proposal-class-properties": "^7.13.0", | ||
"@babel/preset-env": "^7.15.4", | ||
"@babel/preset-react": "^7.12.13", | ||
"@babel/register": "^7.15.3", | ||
"@types/react": "^17.0.20", | ||
@@ -60,0 +61,0 @@ "@wojtekmaj/enzyme-adapter-react-17": "^0.6.3", |
# React I18nify | ||
**Note**: Looking for the v1 documentation? [See v1 branch](https://github.com/sealninja/react-i18nify/tree/v1). | ||
Simple i18n translation and localization components and helpers for React. | ||
@@ -6,0 +4,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
962
56947
22
302