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

Commit

Permalink
Update i18next.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasamato committed Apr 11, 2024
1 parent 4e113ad commit d336f9e
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions @types/i18next.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,25 @@
*
* @link https://www.i18next.com/overview/typescript
*/
import 'i18next'
import "i18next";

import type common from '../public/locales/de/common.json'
import type footer from '../public/locales/de/footer.json'
import type members from '../public/locales/de/members.json'
import type navbar from "../public/locales/de/navbar.json"
import type common from "../public/locales/de/common.json";
import type footer from "../public/locales/de/footer.json";
import type members from "../public/locales/de/members.json";
import type navbar from "../public/locales/de/navbar.json";
import type sponsors from "../public/locales/de/sponsors.json";

interface I18nNamespaces {
common: typeof common
footer: typeof footer
members: typeof members
navbar: typeof navbar
common: typeof common;
footer: typeof footer;
members: typeof members;
navbar: typeof navbar;
sponsors: typeof sponsors;
}

declare module 'i18next' {
interface CustomTypeOptions {
defaultNS: 'common'
resources: I18nNamespaces
}
declare module "i18next" {
interface CustomTypeOptions {
defaultNS: "common";
resources: I18nNamespaces;
}
}

0 comments on commit d336f9e

Please sign in to comment.