react-localization
Advanced tools
Comparing version 0.0.2 to 0.0.3
'use strict'; | ||
/** | ||
* Simple module to localize the React interface using the same syntax | ||
* used in the ReactNativeLocalization module | ||
* Simple module to localize the React interface using the same syntax | ||
* used in the ReactNativeLocalization module | ||
* (https://github.com/stefalda/ReactNativeLocalization) | ||
@@ -45,3 +45,3 @@ * | ||
var interfaceLanguage = navigator.language || navigator.userLanguage; | ||
var interfaceLanguage = navigator.languages ? navigator.languages[0] : (navigator.language || navigator.userLanguage || 'en-US'); | ||
//Store locally the passed strings | ||
@@ -138,2 +138,2 @@ this.props = props; | ||
exports["default"] = LocalizedStrings; | ||
module.exports = exports["default"]; | ||
module.exports = exports["default"]; |
{ | ||
"name": "react-localization", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Simple module to localize the React interface using the same syntax used in the ReactNativeLocalization module", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -11,2 +11,5 @@ # react-localization | ||
##Installation | ||
`npm install --save react-localization` | ||
## Usage | ||
@@ -13,0 +16,0 @@ |
'use strict'; | ||
/** | ||
* Simple module to localize the React interface using the same syntax | ||
* used in the ReactNativeLocalization module | ||
* Simple module to localize the React interface using the same syntax | ||
* used in the ReactNativeLocalization module | ||
* (https://github.com/stefalda/ReactNativeLocalization) | ||
@@ -34,3 +34,3 @@ * | ||
constructor(props) { | ||
let interfaceLanguage = (navigator.language || navigator.userLanguage); | ||
let interfaceLanguage = navigator.languages ? navigator.languages[0] : (navigator.language || navigator.userLanguage || 'en-US'); | ||
//Store locally the passed strings | ||
@@ -37,0 +37,0 @@ this.props = props; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
13176
215
78
0