mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +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:
parent
dbf1baf0ed
commit
ea249c1dc5
@ -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')),
|
||||
|
13316
InvenTree/locale/bg/LC_MESSAGES/django.po
Normal file
13316
InvenTree/locale/bg/LC_MESSAGES/django.po
Normal file
File diff suppressed because it is too large
Load Diff
@ -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
src/frontend/src/locales/bg/messages.d.ts
vendored
Normal file
4
src/frontend/src/locales/bg/messages.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import { Messages } from '@lingui/core';
|
||||
declare const messages: Messages;
|
||||
export { messages };
|
||||
|
3014
src/frontend/src/locales/bg/messages.po
Normal file
3014
src/frontend/src/locales/bg/messages.po
Normal file
File diff suppressed because it is too large
Load Diff
1
src/frontend/src/locales/bg/messages.ts
Normal file
1
src/frontend/src/locales/bg/messages.ts
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user