diff --git a/src/languages/en.ts b/src/languages/en.ts index 77f8e0c8ec1c..a667c38e9662 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -74,13 +74,12 @@ import type { } from './types'; import * as ReportActionsUtils from '../libs/ReportActionsUtils'; -type States = Record< - keyof typeof COMMON_CONST.STATES, - { - stateISO: string; - stateName: string; - } ->; +type StateValue = { + stateISO: string; + stateName: string; +}; + +type States = Record; type AllCountries = Record; diff --git a/src/languages/es.ts b/src/languages/es.ts index 6bbf0cff9d89..f562ed5fd536 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -71,7 +71,7 @@ import type { SetTheRequestParams, UpdatedTheRequestParams, RemovedTheRequestParams, - Translation, + EnglishTranslation, } from './types'; /* eslint-disable max-len */ @@ -2249,4 +2249,4 @@ export default { selectSuggestedAddress: 'Por favor, selecciona una dirección sugerida', }, }, -} satisfies Translation; +} satisfies EnglishTranslation; diff --git a/src/languages/types.ts b/src/languages/types.ts index 358cb206a0ec..5d1963b404f4 100644 --- a/src/languages/types.ts +++ b/src/languages/types.ts @@ -222,17 +222,17 @@ type TranslateType = TPath extends keyof TObject : never : never; -type Translation = typeof en; +type EnglishTranslation = typeof en; -type TranslationPaths = FlattenObject; +type TranslationPaths = FlattenObject; type TranslationFlatObject = { - [TKey in TranslationPaths]: TranslateType; + [TKey in TranslationPaths]: TranslateType; }; export type { TranslationBase, - Translation, + EnglishTranslation, TranslationFlatObject, AddressLineParams, CharacterLimitParams,