fix bug
This commit is contained in:
parent
b125851bb3
commit
7c6631b411
1 changed files with 3 additions and 1 deletions
|
@ -129,6 +129,9 @@ function makeWeirdProxy(obj: [string, translation | void] = ["", undefined]) {
|
|||
translations = I18n.translations[I18n.translations.length - 1];
|
||||
obj[1] = translations;
|
||||
}
|
||||
if (!translations) {
|
||||
return;
|
||||
}
|
||||
|
||||
const value = translations[input];
|
||||
if (value) {
|
||||
|
@ -157,5 +160,4 @@ type DoTheThing<T> = {
|
|||
};
|
||||
|
||||
const proxyClass = makeWeirdProxy() as unknown as typeof I18n & DoTheThing<beforeType>;
|
||||
proxyClass.permissions.descriptions.ADD_REACTIONS();
|
||||
export {proxyClass as I18n, langmap};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue