Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
Another attempt to fix the TypeScript error for translations
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianLeChat committed Jan 30, 2023
1 parent 27dbf59 commit 909d058
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/@types/i18next.d.ts
@@ -1,12 +1,15 @@
// Paramètres personnalisés pour le typage de i18next.
import "i18next";
import type common from "@public/locales/en/common.json";

declare module "i18next"
{
interface CustomTypeOptions
{
defaultNS: "common";
resources: I18nNamespaces;
resources: {
common: typeof common;
};
returnNull: false;
returnEmptyString: false;
}
Expand Down

0 comments on commit 909d058

Please sign in to comment.