mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-20 20:36:19 +02:00
♻️ Refactor i18n files (#670)
This commit is contained in:
parent
cd5bf11179
commit
82499ff48d
166 changed files with 4372 additions and 2052 deletions
8
apps/web/declarations/i18next.d.ts
vendored
8
apps/web/declarations/i18next.d.ts
vendored
|
@ -1,20 +1,14 @@
|
|||
import "react-i18next";
|
||||
|
||||
import app from "../public/locales/en/app.json";
|
||||
import common from "../public/locales/en/common.json";
|
||||
import errors from "../public/locales/en/errors.json";
|
||||
import homepage from "../public/locales/en/homepage.json";
|
||||
|
||||
interface I18nNamespaces {
|
||||
homepage: typeof homepage;
|
||||
app: typeof app;
|
||||
common: typeof common;
|
||||
errors: typeof errors;
|
||||
}
|
||||
|
||||
declare module "i18next" {
|
||||
interface CustomTypeOptions {
|
||||
defaultNS: "common";
|
||||
defaultNS: "app";
|
||||
resources: I18nNamespaces;
|
||||
returnNull: false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue