react-localization
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -13,5 +13,5 @@ 'use strict'; | ||
* | ||
* This library has been refactored to use the newly created localized-strings package so to | ||
* This library has been refactored to use the newly created localized-strings package so to | ||
* unify the code and make it easier to mantain | ||
* | ||
* | ||
* How to use: | ||
@@ -53,3 +53,3 @@ * Check the instructions at: | ||
* | ||
* THIS METHOD OVERRIDE the one of the parent class by adding support for JSX code | ||
* THIS METHOD OVERRIDE the one of the parent class by adding support for JSX code | ||
*/ | ||
@@ -62,3 +62,3 @@ _localizedStrings2.default.prototype.formatString = function (str) { | ||
var hasObject = false; | ||
var res = str.split(placeholderRegex).filter(function (textPart) { | ||
var res = (str || '').split(placeholderRegex).filter(function (textPart) { | ||
return !!textPart; | ||
@@ -65,0 +65,0 @@ }).map(function (textPart, index) { |
{ | ||
"name": "react-localization", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "Simple module to localize the React interface using the same syntax used in the ReactNativeLocalization module, use 'npm run build' before publishing", | ||
@@ -5,0 +5,0 @@ "scripts": { |
13346