mirror of
https://github.com/hotomoe/hotomoe
synced 2024-12-05 02:08:14 +09:00
wip
This commit is contained in:
parent
ff7bb97d8e
commit
f339d028d2
@ -24,12 +24,12 @@ export default class Replacer {
|
|||||||
return key; // Fallback
|
return key; // Fallback
|
||||||
}
|
}
|
||||||
|
|
||||||
let text;
|
let text = texts;
|
||||||
|
|
||||||
// Check the key existance
|
// Check the key existance
|
||||||
const error = key.split('.').some(k => {
|
const error = key.split('.').some(k => {
|
||||||
if (texts.hasOwnProperty(k)) {
|
if (text.hasOwnProperty(k)) {
|
||||||
text = texts[k];
|
text = text[k];
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user