react-native-l20n
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -75,2 +75,3 @@ // L20n depends upon the ECMAScript Internationalization API, | ||
// Also removes explicit newlines from piped, multi-line translations. | ||
// Lines with two or more trailing spaces will receive an explicit newline. | ||
export function ftl(strings, ...values) { | ||
@@ -80,4 +81,5 @@ return strings | ||
.join('') | ||
.replace(/^\s*/mg, '') | ||
.replace(/\s*\n\|\s*/mg, ' '); | ||
.replace(/^[ ]*/mg, '') | ||
.replace(/[ ]{2,}$/mg, '\n|') | ||
.replace(/[ ]*\n\|[ ]*(?!$)/mg, ' '); | ||
}; |
{ | ||
"name": "react-native-l20n", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Mozilla's L20n localization framework for React Native", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
69822
2311