2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-04-28 13:54:25 +00:00

Add translation support for Bulgarian (#5863)

* Enable Bulgarian for backend

* Build out initial backend translations

* Add integration for frontend
This commit is contained in:
Oliver
2023-11-05 21:28:14 +11:00
committed by GitHub
parent dbf1baf0ed
commit ea249c1dc5
7 changed files with 16339 additions and 1 deletions
+2 -1
View File
@@ -814,8 +814,9 @@ LANGUAGE_COOKIE_AGE = 2592000
# 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 --nowrap
# python manage.py makemessages -l <language_code> -e html,js,py --no-wrap
LANGUAGES = [
('bg', _('Bulgarian')),
('cs', _('Czech')),
('da', _('Danish')),
('de', _('German')),
File diff suppressed because it is too large Load Diff
+1
View File
@@ -1,5 +1,6 @@
{
"locales": [
"bg",
"cs",
"da",
"de",
@@ -10,6 +10,7 @@ import { useLocalState } from '../states/LocalState';
export type Locales = keyof typeof languages | 'pseudo-LOCALE';
export const languages: Record<string, string> = {
bg: t`Bulgarian`,
cs: t`Czech`,
da: t`Danish`,
de: t`German`,
+4
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
File diff suppressed because one or more lines are too long