From eea489e602c1fabcb4dab0d0ebc72fe881491325 Mon Sep 17 00:00:00 2001 From: cuixiping Date: Tue, 7 Jan 2020 18:11:21 +0800 Subject: [PATCH] Fix: keep old text when there is no translation --- editor/locale/locale.js | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/locale/locale.js b/editor/locale/locale.js index adc1ef17..9891584e 100644 --- a/editor/locale/locale.js +++ b/editor/locale/locale.js @@ -57,6 +57,7 @@ export const setStrings = function (type, obj, ids) { Object.entries(obj).forEach(([sel, val]) => { if (!val) { console.log(sel); // eslint-disable-line no-console + return; // keep old text when has no translation } if (ids) { sel = '#' + sel; }