Skip to content

Commit

Permalink
Add ukrainian as a language option (#7129)
Browse files Browse the repository at this point in the history
* Add ukrainian as a language option

* change lang code

* add dts
  • Loading branch information
matmair authored Apr 29, 2024
1 parent 0f50117 commit 3f879f0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/backend/InvenTree/InvenTree/locales.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
('sv', _('Swedish')),
('th', _('Thai')),
('tr', _('Turkish')),
('uk', _('Ukrainian')),
('vi', _('Vietnamese')),
('zh-hans', _('Chinese (Simplified)')),
('zh-hant', _('Chinese (Traditional)')),
Expand Down
1 change: 0 additions & 1 deletion src/backend/InvenTree/locale/uk/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -14245,4 +14245,3 @@ msgstr ""
#: users/models.py:426
msgid "Permission to delete items"
msgstr ""

1 change: 1 addition & 0 deletions src/frontend/.linguirc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"sv",
"th",
"tr",
"uk",
"vi",
"zh-hans",
"zh-hant",
Expand Down
1 change: 1 addition & 0 deletions src/frontend/src/contexts/LanguageContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export const getSupportedLanguages = (): Record<string, string> => {
sv: t`Swedish`,
th: t`Thai`,
tr: t`Turkish`,
uk: t`Ukrainian`,
vi: t`Vietnamese`,
'zh-hans': t`Chinese (Simplified)`,
'zh-hant': t`Chinese (Traditional)`
Expand Down
3 changes: 3 additions & 0 deletions src/frontend/src/locales/uk/messages.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { Messages } from '@lingui/core';
declare const messages: Messages;
export { messages };
1 change: 0 additions & 1 deletion src/frontend/src/locales/uk/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -6375,4 +6375,3 @@ msgstr ""
#: src/views/MobileAppView.tsx:35
msgid "Ignore and continue to Desktop view"
msgstr ""

0 comments on commit 3f879f0

Please sign in to comment.