mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Arabic support (#7630)
* Add 'ar' language (Arabic) * Add front-end support
This commit is contained in:
parent
a237de10ec
commit
fb17078497
@ -15,6 +15,7 @@ Additionally, update the following files with the new locale code:
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
LOCALES = [
|
||||
('ar', _('Arabic')),
|
||||
('bg', _('Bulgarian')),
|
||||
('cs', _('Czech')),
|
||||
('da', _('Danish')),
|
||||
|
14868
src/backend/InvenTree/locale/ar/LC_MESSAGES/django.po
Normal file
14868
src/backend/InvenTree/locale/ar/LC_MESSAGES/django.po
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,6 @@
|
||||
{
|
||||
"locales": [
|
||||
"ar",
|
||||
"bg",
|
||||
"cs",
|
||||
"da",
|
||||
|
@ -17,6 +17,7 @@ export const defaultLocale = 'en';
|
||||
*/
|
||||
export const getSupportedLanguages = (): Record<string, string> => {
|
||||
return {
|
||||
ar: t`Arabic`,
|
||||
bg: t`Bulgarian`,
|
||||
cs: t`Czech`,
|
||||
da: t`Danish`,
|
||||
|
4
src/frontend/src/locales/ar/messages.d.ts
vendored
Normal file
4
src/frontend/src/locales/ar/messages.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import { Messages } from '@lingui/core';
|
||||
declare const messages: Messages;
|
||||
export { messages };
|
||||
|
6065
src/frontend/src/locales/ar/messages.po
Normal file
6065
src/frontend/src/locales/ar/messages.po
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user