We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0f7dd8 commit 5ee37a1Copy full SHA for 5ee37a1
website/src/translations.tsx
@@ -103,5 +103,8 @@ export const t = (key: string) => {
103
if (typeof menuTranslations[key] === "string") {
104
return menuTranslations[key];
105
}
106
- return menuTranslations[key]();
+ if (Object.hasOwn(menuTranslations, key)) {
107
+ return menuTranslations[key]();
108
+ }
109
+ throw new Error(`Not translation found for ${key}`);
110
};
0 commit comments