i18n: rely less on exceptions
This commit is contained in:
parent
d00b25cbe7
commit
976c57c043
@ -52,8 +52,13 @@ class Localization {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
if (entry.message.includes("$")) {
|
||||||
this.strings.set(id, new Entry(entry));
|
this.strings.set(id, new Entry(entry));
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
this.strings.set(id, entry.message);
|
||||||
|
}
|
||||||
|
}
|
||||||
catch (ex) {
|
catch (ex) {
|
||||||
this.strings.set(id, entry.message);
|
this.strings.set(id, entry.message);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user