Update next i18next (#472)

This commit is contained in:
Luke Vella 2023-02-02 09:26:04 +00:00 committed by GitHub
parent 4edaa3a700
commit 6ac64bbc42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 38 additions and 38 deletions

View file

@ -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;
}
}