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

localized-strings

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

localized-strings - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

16

lib/LocalizedStrings.js

@@ -41,4 +41,4 @@ 'use strict';

* Get the best match based on the language passed and the available languages
* @param {*} language
* @param {*} props
* @param {*} language
* @param {*} props
*/

@@ -58,3 +58,3 @@ value: function _getBestMatchingLanguage(language, props) {

* the interface language
* @param {*} props - the strings object
* @param {*} props - the strings object
* @param {*} getInterfaceLanguageCallback - the optional method to use to get the InterfaceLanguage

@@ -79,3 +79,3 @@ */

* Set the strings objects based on the parameter passed in the constructor
* @param {*} props
* @param {*} props
*/

@@ -105,3 +105,3 @@

* indipendently from the interface one
* @param {*} language
* @param {*} language
*/

@@ -139,4 +139,4 @@

* Load fallback values for missing translations
* @param {*} defaultStrings
* @param {*} strings
* @param {*} defaultStrings
* @param {*} strings
*/

@@ -211,3 +211,3 @@

return str.split(placeholderRegex).filter(function (textPart) {
return (str || '').split(placeholderRegex).filter(function (textPart) {
return !!textPart;

@@ -214,0 +214,0 @@ }).map(function (textPart, index) {

{
"name": "localized-strings",
"version": "0.0.10",
"version": "0.0.11",
"description": "Simple module to localize the strings of any JS based program using the same syntax used in the ReactLocalization and ReactNativeLocalization module, use 'npm run build' before publishing",

@@ -5,0 +5,0 @@ "scripts": {

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