diff --git a/README.md b/README.md index 91fc7f8f..acc277e0 100644 --- a/README.md +++ b/README.md @@ -403,6 +403,7 @@ Partial internationalization (for non-admin, user-facing text) provided for a ha - `bd-bn` - `en-gb` - `en-us` +- `es-es` - `hi-in` - `id-id` - `pt-br` @@ -410,7 +411,6 @@ Partial internationalization (for non-admin, user-facing text) provided for a ha - `tr-tr` - `vi-vn` - `zh-cn` -- `es-es` To add support for a new language, open a PR following instructions in [/src/i18n/index.ts](https://github.com/sambecker/exif-photo-blog/blob/main/src/i18n/index.ts), using [en-us.ts](https://github.com/sambecker/exif-photo-blog/blob/main/src/i18n/locales/en-us.ts) as reference. diff --git a/src/i18n/index.ts b/src/i18n/index.ts index 6ae5dbfc..b383b580 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -20,6 +20,7 @@ const LOCALE_TEXT_IMPORTS: Record< > = { 'bd-bn': () => import('./locales/bd-bn').then(m => m.TEXT), 'en-gb': () => import('./locales/en-gb').then(m => m.TEXT), + 'es-es': () => import('./locales/es-es').then(m => m.TEXT), 'hi-in': () => import('./locales/hi-in').then(m => m.TEXT), 'id-id': () => import('./locales/id-id').then(m => m.TEXT), 'pt-br': () => import('./locales/pt-br').then(m => m.TEXT),