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

redux-polyglot

Package Overview
Dependencies
Maintainers
3
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-polyglot - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

dist/translate.js

@@ -26,3 +26,3 @@ 'use strict';

return {
p: (0, _selectors.getP)(state, polyglotScope)
p: (0, _selectors.getP)(state, { polyglotScope: polyglotScope })
};

@@ -29,0 +29,0 @@ };

{
"name": "redux-polyglot",
"version": "0.3.0",
"version": "0.3.1",
"description": "Tool for using Polyglot.js with Redux",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -96,4 +96,4 @@ # redux-polyglot

there is an optional parameter to getP(), he's name is polyglotScope.
this is allow you to automatically 'aim' a scope in your phrases object.
there is an optional parameter to getP().
this is allow you to automatically 'aim' a scope in your phrases object using `polyglotScope` property.

@@ -106,3 +106,3 @@ for example :

}));
const p = getP(store.getState(), 'some.nested.data');
const p = getP(store.getState(), { polyglotScope: 'some.nested.data' });
console.log(p.tc('hello')) // => will return 'Hello'

@@ -109,0 +109,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