mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 07:23:08 +02:00
wip
This commit is contained in:
parent
ff7bb97d8e
commit
f339d028d2
1 changed files with 3 additions and 3 deletions
|
@ -24,12 +24,12 @@ export default class Replacer {
|
|||
return key; // Fallback
|
||||
}
|
||||
|
||||
let text;
|
||||
let text = texts;
|
||||
|
||||
// Check the key existance
|
||||
const error = key.split('.').some(k => {
|
||||
if (texts.hasOwnProperty(k)) {
|
||||
text = texts[k];
|
||||
if (text.hasOwnProperty(k)) {
|
||||
text = text[k];
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue