This commit is contained in:
@@ -17,9 +17,14 @@ export default {
|
||||
cachekey
|
||||
) {
|
||||
//find match
|
||||
let display = window.$gz._.find(editedTranslation.translationItems, {
|
||||
key: cachekey
|
||||
}).display;
|
||||
//de-lodash
|
||||
// let display = window.$gz. _.find(editedTranslation.translationItems, {
|
||||
// key: cachekey
|
||||
// }).display;
|
||||
let display = editedTranslation.translationItems.find(
|
||||
z => z.key == cachekey
|
||||
).display;
|
||||
|
||||
window.$gz.store.commit("setTranslationText", {
|
||||
key: cachekey,
|
||||
value: display
|
||||
@@ -48,7 +53,7 @@ export default {
|
||||
if (key == "Wiki") {
|
||||
return "Wiki";
|
||||
}
|
||||
if (!window.$gz._.has(window.$gz.store.state.translationText, key)) {
|
||||
if (!window.$gz.util.has(window.$gz.store.state.translationText, key)) {
|
||||
return "??" + key;
|
||||
}
|
||||
return window.$gz.store.state.translationText[key];
|
||||
@@ -62,7 +67,7 @@ export default {
|
||||
let needIt = [];
|
||||
for (let i = 0; i < keys.length; i++) {
|
||||
if (
|
||||
!window.$gz._.has(window.$gz.store.state.translationText, keys[i])
|
||||
!window.$gz.util.has(window.$gz.store.state.translationText, keys[i])
|
||||
) {
|
||||
needIt.push(keys[i]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user