mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-10 15:40:57 -07:00
wip
This commit is contained in:
parent
b6d71c3f4f
commit
ebcba5eb04
1 changed files with 3 additions and 3 deletions
|
@ -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 a new issue