Skip to content

Commit

Permalink
fix: i18n typescript support
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Jul 31, 2024
1 parent ff6a3f3 commit 4609af7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions frontend/types/i18next.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defaultNS, resources } from "../src/i18n/i18nConfig";

declare module "i18next" {
interface CustomTypeOptions {
defaultNS: typeof defaultNS;
resources: (typeof resources)["en"];
}
}

0 comments on commit 4609af7

Please sign in to comment.