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