mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-04 00:48:52 +02:00
Update next i18next (#472)
This commit is contained in:
parent
4edaa3a700
commit
6ac64bbc42
7 changed files with 38 additions and 38 deletions
18
declarations/i18next.d.ts
vendored
18
declarations/i18next.d.ts
vendored
|
@ -5,11 +5,17 @@ import common from "~/public/locales/en/common.json";
|
|||
import errors from "~/public/locales/en/errors.json";
|
||||
import homepage from "~/public/locales/en/homepage.json";
|
||||
|
||||
declare module "next-i18next" {
|
||||
interface Resources {
|
||||
homepage: typeof homepage;
|
||||
app: typeof app;
|
||||
common: typeof common;
|
||||
errors: typeof errors;
|
||||
interface I18nNamespaces {
|
||||
homepage: typeof homepage;
|
||||
app: typeof app;
|
||||
common: typeof common;
|
||||
errors: typeof errors;
|
||||
}
|
||||
|
||||
declare module "i18next" {
|
||||
interface CustomTypeOptions {
|
||||
defaultNS: "common";
|
||||
resources: I18nNamespaces;
|
||||
returnNull: false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue