refactor: one locales file for all english translations (#10006)

one locales file for all english translations
This commit is contained in:
Daniel Dietzler 2024-06-06 00:57:44 +02:00 committed by GitHub
parent 0f976edf96
commit 1947316b0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ describe('AlbumCard component', () => {
beforeAll(async () => {
await init({ fallbackLocale: 'en-US' });
register('en-US', () => import('$lib/i18n/en-US.json'));
register('en-US', () => import('$lib/i18n/en.json'));
await waitLocale('en-US');
});

View File

@ -157,7 +157,7 @@ export const locales = [
{ code: 'en-TT', name: 'English (Trinidad and Tobago)' },
{ code: 'en-VI', name: 'English (U.S. Virgin Islands)' },
{ code: 'en-GB', name: 'English (United Kingdom)' },
{ code: 'en-US', name: 'English (United States)', loader: () => import('$lib/i18n/en-US.json') },
{ code: 'en-US', name: 'English (United States)', loader: () => import('$lib/i18n/en.json') },
{ code: 'en-ZW', name: 'English (Zimbabwe)' },
{ code: 'et-EE', name: 'Estonian (Estonia)' },
{ code: 'fo-FO', name: 'Faroese (Faroe Islands)' },