- Fix: Regression with locale string setting

master
Brett Zamir 2018-10-02 21:19:47 +08:00
parent 3909d2fd97
commit a5265d2c22
9 changed files with 9 additions and 9 deletions

2
dist/index-es.js vendored
View File

@ -27034,7 +27034,7 @@ var setStrings = function setStrings(type, obj, ids) {
switch (type) { switch (type) {
case 'content': case 'content':
for (var i = 0, node; node = elem.childNodes[i]; i++) { for (var i = 0, node; node = elem.childNodes[i]; i++) {
if (node.nodeType === 3 && node.textContent.trim()) { if (node.nodeType === 3 && !node.textContent.trim()) {
node.textContent = val; node.textContent = val;
break; break;
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/index-umd.js vendored
View File

@ -27040,7 +27040,7 @@
switch (type) { switch (type) {
case 'content': case 'content':
for (var i = 0, node; node = elem.childNodes[i]; i++) { for (var i = 0, node; node = elem.childNodes[i]; i++) {
if (node.nodeType === 3 && node.textContent.trim()) { if (node.nodeType === 3 && !node.textContent.trim()) {
node.textContent = val; node.textContent = val;
break; break;
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -49,7 +49,7 @@ export const setStrings = function (type, obj, ids) {
switch (type) { switch (type) {
case 'content': case 'content':
for (let i = 0, node; (node = elem.childNodes[i]); i++) { for (let i = 0, node; (node = elem.childNodes[i]); i++) {
if (node.nodeType === 3 && node.textContent.trim()) { if (node.nodeType === 3 && !node.textContent.trim()) {
node.textContent = val; node.textContent = val;
break; break;
} }

View File

@ -27037,7 +27037,7 @@
switch (type) { switch (type) {
case 'content': case 'content':
for (var i = 0, node; node = elem.childNodes[i]; i++) { for (var i = 0, node; node = elem.childNodes[i]; i++) {
if (node.nodeType === 3 && node.textContent.trim()) { if (node.nodeType === 3 && !node.textContent.trim()) {
node.textContent = val; node.textContent = val;
break; break;
} }

View File

@ -27037,7 +27037,7 @@
switch (type) { switch (type) {
case 'content': case 'content':
for (var i = 0, node; node = elem.childNodes[i]; i++) { for (var i = 0, node; node = elem.childNodes[i]; i++) {
if (node.nodeType === 3 && node.textContent.trim()) { if (node.nodeType === 3 && !node.textContent.trim()) {
node.textContent = val; node.textContent = val;
break; break;
} }