mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-10-23 10:42:23 +00:00
fix bug
This commit is contained in:
1 parent
b125851bb3
commit
7c6631b411
1 file changed
+3
-1
+3
-1
@@ -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};
|
||||
Reference in new issue
Block a user