diff --git a/packages/app/components/accounts/actions.test.ts b/packages/app/components/accounts/actions.test.ts index 89e606a..d19115b 100644 --- a/packages/app/components/accounts/actions.test.ts +++ b/packages/app/components/accounts/actions.test.ts @@ -12,6 +12,23 @@ import { Dispatch, RootState } from 'app/reducers'; import { Account } from './reducer'; +jest.mock('app/i18n', () => ({ + en: { + code: 'en', + name: 'English', + englishName: 'English', + progress: 100, + isReleased: true, + }, + be: { + code: 'be', + name: 'Беларуская', + englishName: 'Belarusian', + progress: 97, + isReleased: true, + }, +})); + const token = 'eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlbHl8MSJ9.pRJ7vakt2eIscjqwG__KhSxKb3qwGsdBBeDbBffJs_I'; const legacyToken = 'eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOjF9.cRF-sQNrwWQ94xCb3vWioVdjxAZeefEE7GMGwh7708o'; diff --git a/packages/app/i18n/index.ts b/packages/app/i18n/index.ts index 921f415..f23fed7 100644 --- a/packages/app/i18n/index.ts +++ b/packages/app/i18n/index.ts @@ -11,7 +11,9 @@ export interface Locale { isReleased: boolean; } -const langs: Record = { +export type LocalesList = Record; + +const langs: LocalesList = { en: { code: 'en', name: 'English',