mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +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 _
|
from django.utils.translation import gettext_lazy as _
|
||||||
|
|
||||||
LOCALES = [
|
LOCALES = [
|
||||||
|
('ar', _('Arabic')),
|
||||||
('bg', _('Bulgarian')),
|
('bg', _('Bulgarian')),
|
||||||
('cs', _('Czech')),
|
('cs', _('Czech')),
|
||||||
('da', _('Danish')),
|
('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": [
|
"locales": [
|
||||||
|
"ar",
|
||||||
"bg",
|
"bg",
|
||||||
"cs",
|
"cs",
|
||||||
"da",
|
"da",
|
||||||
|
@ -17,6 +17,7 @@ export const defaultLocale = 'en';
|
|||||||
*/
|
*/
|
||||||
export const getSupportedLanguages = (): Record<string, string> => {
|
export const getSupportedLanguages = (): Record<string, string> => {
|
||||||
return {
|
return {
|
||||||
|
ar: t`Arabic`,
|
||||||
bg: t`Bulgarian`,
|
bg: t`Bulgarian`,
|
||||||
cs: t`Czech`,
|
cs: t`Czech`,
|
||||||
da: t`Danish`,
|
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…
x
Reference in New Issue
Block a user