From 86904a8382626b87f3ffc2de15429a00959cea4b Mon Sep 17 00:00:00 2001 From: Jason Rasmussen <jrasm91@gmail.com> Date: Wed, 31 Jul 2024 10:26:17 -0400 Subject: [PATCH] feat(web): more languages (#11488) --- web/src/lib/constants.ts | 5 +++++ web/src/lib/i18n/af.json | 1 + web/src/lib/i18n/be.json | 1 + web/src/lib/i18n/el.json | 1 + web/src/lib/i18n/et.json | 1 + web/src/lib/i18n/te.json | 1 + 6 files changed, 10 insertions(+) create mode 100644 web/src/lib/i18n/af.json create mode 100644 web/src/lib/i18n/be.json create mode 100644 web/src/lib/i18n/el.json create mode 100644 web/src/lib/i18n/et.json create mode 100644 web/src/lib/i18n/te.json diff --git a/web/src/lib/constants.ts b/web/src/lib/constants.ts index a5f92964a6..60a0ed14c1 100644 --- a/web/src/lib/constants.ts +++ b/web/src/lib/constants.ts @@ -248,8 +248,10 @@ export const locales = [ export const defaultLang = { name: 'English', code: 'en', loader: () => import('$lib/i18n/en.json') }; export const langs = [ + { name: 'Afrikaans', code: 'af', loader: () => import('$lib/i18n/af.json') }, { name: 'Arabic', code: 'ar', loader: () => import('$lib/i18n/ar.json') }, { name: 'Azerbaijani', code: 'az', loader: () => import('$lib/i18n/az.json') }, + { name: 'Belarusian', code: 'be', loader: () => import('$lib/i18n/be.json') }, { name: 'Bulgarian', code: 'bg', loader: () => import('$lib/i18n/bg.json') }, { name: 'Bislama', code: 'bi', loader: () => import('$lib/i18n/bi.json') }, { name: 'Catalan', code: 'ca', loader: () => import('$lib/i18n/ca.json') }, @@ -257,7 +259,9 @@ export const langs = [ { name: 'Danish', code: 'da', loader: () => import('$lib/i18n/da.json') }, { name: 'German', code: 'de', loader: () => import('$lib/i18n/de.json') }, defaultLang, + { name: 'Greek', code: 'el', loader: () => import('$lib/i18n/el.json') }, { name: 'Spanish', code: 'es', loader: () => import('$lib/i18n/es.json') }, + { name: 'Estonian', code: 'et', loader: () => import('$lib/i18n/et.json') }, { name: 'Persian', code: 'fa', loader: () => import('$lib/i18n/fa.json') }, { name: 'Finnish', code: 'fi', loader: () => import('$lib/i18n/fi.json') }, { name: 'French', code: 'fr', loader: () => import('$lib/i18n/fr.json') }, @@ -292,6 +296,7 @@ export const langs = [ { name: 'Serbian (Latin)', code: 'sr-Latn', weblateCode: 'sr_Latn', loader: () => import('$lib/i18n/sr_Latn.json') }, { name: 'Swedish', code: 'sv', loader: () => import('$lib/i18n/sv.json') }, { name: 'Tamil', code: 'ta', loader: () => import('$lib/i18n/ta.json') }, + { name: 'Telugu', code: 'te', loader: () => import('$lib/i18n/te.json') }, { name: 'Thai', code: 'th', loader: () => import('$lib/i18n/th.json') }, { name: 'Turkish', code: 'tr', loader: () => import('$lib/i18n/tr.json') }, { name: 'Ukrainian', code: 'uk', loader: () => import('$lib/i18n/uk.json') }, diff --git a/web/src/lib/i18n/af.json b/web/src/lib/i18n/af.json new file mode 100644 index 0000000000..0967ef424b --- /dev/null +++ b/web/src/lib/i18n/af.json @@ -0,0 +1 @@ +{} diff --git a/web/src/lib/i18n/be.json b/web/src/lib/i18n/be.json new file mode 100644 index 0000000000..0967ef424b --- /dev/null +++ b/web/src/lib/i18n/be.json @@ -0,0 +1 @@ +{} diff --git a/web/src/lib/i18n/el.json b/web/src/lib/i18n/el.json new file mode 100644 index 0000000000..0967ef424b --- /dev/null +++ b/web/src/lib/i18n/el.json @@ -0,0 +1 @@ +{} diff --git a/web/src/lib/i18n/et.json b/web/src/lib/i18n/et.json new file mode 100644 index 0000000000..0967ef424b --- /dev/null +++ b/web/src/lib/i18n/et.json @@ -0,0 +1 @@ +{} diff --git a/web/src/lib/i18n/te.json b/web/src/lib/i18n/te.json new file mode 100644 index 0000000000..0967ef424b --- /dev/null +++ b/web/src/lib/i18n/te.json @@ -0,0 +1 @@ +{}