Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-i18nify

Package Overview
Dependencies
Maintainers
2
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-i18nify - npm Package Compare versions

Comparing version 4.1.3 to 4.1.4

5

example/example.js
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",

2

README.md
# 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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc