mirror of
https://github.com/immich-app/immich.git
synced 2025-07-03 21:40:00 +02:00
chore: update translations (#10003)
* chore: add translations (German) * chore: add translations (Dutch) * chore: add translations (Spanish) * chore: add translations (Spanish (es_ES@new)) * chore: (Spanish) Currently translated at 0.1% (1 of 769 strings) Translation: Immich/immich Translate-URL: https://hosted.weblate.org/projects/immich/immich/es/ * chore: remove translations (Spanish (es_ES@new)) * chore: add translations (Arabic) * chore: add translations (Catalan) * chore: add translations (Danish) * chore: add translations (Finnish) * chore: add translations (French) * chore: add translations (Hebrew) * chore: add translations (Hindi) * chore: add translations (Hungarian) * chore: add translations (Italian) * chore: add translations (Japanese) * chore: add translations (Korean) * chore: add translations (Lithuanian) * chore: add translations (Latvian) * chore: add translations (Mongolian) * chore: add translations (Norwegian Bokmål) * chore: add translations (Polish) * chore: add translations (Portuguese) * chore: add translations (Romanian) * chore: add translations (Russian) * chore: add translations (Slovak) * chore: add translations (Slovenian) * chore: add translations (Serbian) * chore: add translations (Swedish) * chore: add translations (Thai) * chore: add translations (Ukrainian) * chore: add translations (Vietnamese) * chore: add translations (Czech) * chore: add translations (Chinese (Simplified) (zh_SIMPLIFIED)) * chore: add base languages --------- Co-authored-by: Immich <immich@futo.org> Co-authored-by: Daniel Dietzler <mail@ddietzler.dev> Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
This commit is contained in:
parent
4ad97ccded
commit
c6c480c882
32 changed files with 24245 additions and 6 deletions
web/src/lib
|
@ -1,5 +1,3 @@
|
|||
import type { register } from 'svelte-i18n';
|
||||
|
||||
export enum AssetAction {
|
||||
ARCHIVE = 'archive',
|
||||
UNARCHIVE = 'unarchive',
|
||||
|
@ -157,7 +155,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.json') },
|
||||
{ code: 'en-US', name: 'English (United States)' },
|
||||
{ code: 'en-ZW', name: 'English (Zimbabwe)' },
|
||||
{ code: 'et-EE', name: 'Estonian (Estonia)' },
|
||||
{ code: 'fo-FO', name: 'Faroese (Faroe Islands)' },
|
||||
|
@ -248,8 +246,38 @@ export const locales = [
|
|||
|
||||
export const fallbackLang = 'en-US';
|
||||
|
||||
type LanguageLoader = { code: string; name: string; loader: Parameters<typeof register>[1] };
|
||||
export const langs = [
|
||||
...locales.filter((item): item is LanguageLoader => !!item.loader),
|
||||
{ name: 'Development', code: 'dev', loader: () => Promise.resolve({}) },
|
||||
{ name: 'Arabic', code: 'ar', loader: () => import('$lib/i18n/ar.json') },
|
||||
{ name: 'Catalan', code: 'ca', loader: () => import('$lib/i18n/ca.json') },
|
||||
{ name: 'Czech', code: 'cs', loader: () => import('$lib/i18n/cs.json') },
|
||||
{ name: 'Danish', code: 'da', loader: () => import('$lib/i18n/da.json') },
|
||||
{ name: 'German', code: 'de', loader: () => import('$lib/i18n/de.json') },
|
||||
{ name: 'English', code: 'en', loader: () => import('$lib/i18n/en.json') },
|
||||
{ name: 'Spanish', code: 'es', loader: () => import('$lib/i18n/es.json') },
|
||||
{ name: 'Finnish', code: 'fi', loader: () => import('$lib/i18n/fi.json') },
|
||||
{ name: 'French', code: 'fr', loader: () => import('$lib/i18n/fr.json') },
|
||||
{ name: 'Hebrew', code: 'he', loader: () => import('$lib/i18n/he.json') },
|
||||
{ name: 'Hindi', code: 'hi', loader: () => import('$lib/i18n/hi.json') },
|
||||
{ name: 'Hungarian', code: 'hu', loader: () => import('$lib/i18n/hu.json') },
|
||||
{ name: 'Italian', code: 'it', loader: () => import('$lib/i18n/it.json') },
|
||||
{ name: 'Japanese', code: 'ja', loader: () => import('$lib/i18n/ja.json') },
|
||||
{ name: 'Korean', code: 'ko', loader: () => import('$lib/i18n/ko.json') },
|
||||
{ name: 'Lithuanian', code: 'lt', loader: () => import('$lib/i18n/lt.json') },
|
||||
{ name: 'Latvian', code: 'lv', loader: () => import('$lib/i18n/lv.json') },
|
||||
{ name: 'Mongolian', code: 'mn', loader: () => import('$lib/i18n/mn.json') },
|
||||
{ name: 'Norwegian Bokmål', code: 'nb_NO', loader: () => import('$lib/i18n/nb_NO.json') },
|
||||
{ name: 'Dutch', code: 'nl', loader: () => import('$lib/i18n/nl.json') },
|
||||
{ name: 'Polish', code: 'pl', loader: () => import('$lib/i18n/pl.json') },
|
||||
{ name: 'Portuguese', code: 'pt', loader: () => import('$lib/i18n/pt.json') },
|
||||
{ name: 'Romanian', code: 'ro', loader: () => import('$lib/i18n/ro.json') },
|
||||
{ name: 'Russian', code: 'ru', loader: () => import('$lib/i18n/ru.json') },
|
||||
{ name: 'Slovak', code: 'sk', loader: () => import('$lib/i18n/sk.json') },
|
||||
{ name: 'Slovenian', code: 'sl', loader: () => import('$lib/i18n/sl.json') },
|
||||
{ name: 'Serbian', code: 'sr', loader: () => import('$lib/i18n/sr.json') },
|
||||
{ name: 'Swedish', code: 'sv', loader: () => import('$lib/i18n/sv.json') },
|
||||
{ name: 'Thai', code: 'th', loader: () => import('$lib/i18n/th.json') },
|
||||
{ name: 'Ukrainian', code: 'uk', loader: () => import('$lib/i18n/uk.json') },
|
||||
{ name: 'Vietnamese', code: 'vi', loader: () => import('$lib/i18n/vi.json') },
|
||||
{ name: 'Chinese (Simplified)', code: 'zh_SIMPLIFIED', loader: () => import('$lib/i18n/zh_SIMPLIFIED.json') },
|
||||
{ name: 'Development (keys only)', code: 'dev', loader: () => Promise.resolve({}) },
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue