localized-strings
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21351