High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
refactor: one locales file for all english translations (#10006)
Daniel Dietzler1947316b0b19
diff --git a/web/src/lib/components/album-page/__tests__/album-card.spec.ts b/web/src/lib/components/album-page/__tests__/album-card.spec.tsindex 93461e543d..6ffa273a4d 100644--- a/web/src/lib/components/album-page/__tests__/album-card.spec.ts+++ b/web/src/lib/components/album-page/__tests__/album-card.spec.ts@@ -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');});diff --git a/web/src/lib/constants.ts b/web/src/lib/constants.tsindex cc118775b9..15fa7562e8 100644--- a/web/src/lib/constants.ts+++ b/web/src/lib/constants.ts@@ -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)' },diff --git a/web/src/lib/i18n/en-US.json b/web/src/lib/i18n/en.jsonsimilarity index 100%rename from web/src/lib/i18n/en-US.jsonrename to web/src/lib/i18n/en.json