Socket
Socket
Sign inDemoInstall

react-localization

Package Overview
Dependencies
0
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2 to 0.0.3

8

lib/LocalizedStrings.js
'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;

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc