fix bug
This commit is contained in:
@@ -129,6 +129,9 @@ function makeWeirdProxy(obj: [string, translation | void] = ["", undefined]) {
|
|||||||
translations = I18n.translations[I18n.translations.length - 1];
|
translations = I18n.translations[I18n.translations.length - 1];
|
||||||
obj[1] = translations;
|
obj[1] = translations;
|
||||||
}
|
}
|
||||||
|
if (!translations) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const value = translations[input];
|
const value = translations[input];
|
||||||
if (value) {
|
if (value) {
|
||||||
@@ -157,5 +160,4 @@ type DoTheThing<T> = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const proxyClass = makeWeirdProxy() as unknown as typeof I18n & DoTheThing<beforeType>;
|
const proxyClass = makeWeirdProxy() as unknown as typeof I18n & DoTheThing<beforeType>;
|
||||||
proxyClass.permissions.descriptions.ADD_REACTIONS();
|
|
||||||
export {proxyClass as I18n, langmap};
|
export {proxyClass as I18n, langmap};
|
||||||
|
Reference in New Issue
Block a user