Add Latvian language support (#6749)

* Add Latvian language support

* Add empty frontend translation

* Add messages.d.ts
This commit is contained in:
Oliver 2024-03-19 12:25:15 +11:00 committed by GitHub
parent 7811ba5578
commit 6a7ea919e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 19138 additions and 2 deletions

View File

@ -2,12 +2,14 @@
If a new language translation is supported, it must be added here
After adding a new language, run the following command:
python manage.py makemessages -l <language_code> -e html,js,py --no-wrap
where <language_code> is the code for the new language
- where <language_code> is the code for the new language
Additionally, update the following files with the new locale code:
- /src/frontend/.linguirc file
- /src/frontend/src/context/LanguageContext.tsx
- /src/frontend/src/contexts/LanguageContext.tsx
"""
from django.utils.translation import gettext_lazy as _
@ -30,6 +32,7 @@ LOCALES = [
('it', _('Italian')),
('ja', _('Japanese')),
('ko', _('Korean')),
('lv', _('Latvian')),
('nl', _('Dutch')),
('no', _('Norwegian')),
('pl', _('Polish')),

File diff suppressed because it is too large Load Diff

View File

@ -17,6 +17,7 @@
"it",
"ja",
"ko",
"lv",
"nl",
"no",
"pl",

View File

@ -34,6 +34,7 @@ export const getSupportedLanguages = (): Record<string, string> => {
it: t`Italian`,
ja: t`Japanese`,
ko: t`Korean`,
lv: t`Latvian`,
nl: t`Dutch`,
no: t`Norwegian`,
pl: t`Polish`,

View File

@ -0,0 +1,4 @@
import { Messages } from '@lingui/core';
declare const messages: Messages;
export { messages };

File diff suppressed because it is too large Load Diff