Use correct namespace for i18n types (#3675)
This commit is contained in:
parent
8d7d195b00
commit
508e367670
1 changed files with 3 additions and 2 deletions
5
apps/account-ui/src/react-i18next.d.ts
vendored
5
apps/account-ui/src/react-i18next.d.ts
vendored
|
@ -1,8 +1,9 @@
|
||||||
import "react-i18next";
|
// https://www.i18next.com/overview/typescript
|
||||||
|
import "i18next";
|
||||||
|
|
||||||
import translation from "../public/locales/en/translation.json";
|
import translation from "../public/locales/en/translation.json";
|
||||||
|
|
||||||
declare module "react-i18next" {
|
declare module "i18next" {
|
||||||
interface CustomTypeOptions {
|
interface CustomTypeOptions {
|
||||||
defaultNS: "translation";
|
defaultNS: "translation";
|
||||||
resources: {
|
resources: {
|
||||||
|
|
Loading…
Reference in a new issue