diff --git a/frontend/src/i18n/i18n.types.ts b/frontend/src/i18n/i18n.types.ts index a9ac772..ad50417 100644 --- a/frontend/src/i18n/i18n.types.ts +++ b/frontend/src/i18n/i18n.types.ts @@ -12,10 +12,12 @@ import { translations } from "."; import { TFilterNestedKeysOfType } from "@/types/common/object.types"; -export type TTranslation = - | (typeof translations)["en"] - | (typeof translations)["fr"]; -export type TTranslationKeys = TFilterNestedKeysOfType; +type TEnTranslation = (typeof translations)["en"]; +type TFrTranslation = (typeof translations)["fr"]; + +export type TTranslation = TEnTranslation & TFrTranslation; +export type TTranslationKeys = TFilterNestedKeysOfType & + TFilterNestedKeysOfType; export type TNestedTranslation = TFilterNestedKeysOfType;