mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
Merge branch 'feature/i18n-arabic' of https://github.com/abouolia/Ratteb into feature/i18n-arabic
This commit is contained in:
64
client/src/lang/ar-ly/locale.js
Normal file
64
client/src/lang/ar-ly/locale.js
Normal file
@@ -0,0 +1,64 @@
|
||||
// Based on https://github.com/jquense/yup/blob/2973d0a/src/locale.js
|
||||
|
||||
import printValue from '../printValue';
|
||||
|
||||
export const locale = {
|
||||
mixed: {
|
||||
default: '${path} غير صالح.',
|
||||
required: '${path} هو حقل مطلوب',
|
||||
oneOf: '${path} يجب أن تكون واحدة من القيم التالية: ${values}',
|
||||
notOneOf: '${path} لا يجب أن تكون واحدة من القيم التالية: ${values}',
|
||||
notType: ({ path, type, value, originalValue }) => {
|
||||
const isCast = originalValue != null && originalValue !== value;
|
||||
let msg =
|
||||
`${path} يجب أن يكون \`${type}\` نوع, ` +
|
||||
`ولكن القيمة النهائية كانت في: \`${printValue(value, true)}\`` +
|
||||
(isCast
|
||||
? ` (المدلى بها من قيمة \`${printValue(originalValue, true)}\`).`
|
||||
: '.');
|
||||
|
||||
if (value === null) {
|
||||
msg +=
|
||||
`\n إذا كان المقصود "لاغية" كقيمة فارغة مما لا شك فيه للاحتفال مخطط كما` +
|
||||
' `.nullable()`';
|
||||
}
|
||||
|
||||
return msg;
|
||||
},
|
||||
},
|
||||
|
||||
string: {
|
||||
length: '${path} يجب أن يكون بالضبط ${length} حرفا',
|
||||
min: '${path} يجب أن تكون على الأقل ${min} حرفا',
|
||||
max: '${path} يجب أن تكون على الأكثر ${max} حرفا',
|
||||
matches: '${path} يجب أن يطابق ما يلي: "${regex}"',
|
||||
email: '${path} يجب أن يكون عنوان بريد إلكتروني صالح',
|
||||
url: '${path} يجب أن يكون عنوان URL صالحا',
|
||||
trim: '${path} يجب أن تكون سلسلة قلص',
|
||||
lowercase: '${path} يجب أن تكون سلسلة صغيرة',
|
||||
uppercase: '${path} يجب أن تكون سلسلة الحالة العلوي',
|
||||
},
|
||||
|
||||
number: {
|
||||
min: '${path} يجب أن تكون أكبر من أو يساوي ${min}',
|
||||
max: '${path} يجب أن يكون أقل من أو يساوي ${max}',
|
||||
lessThan: '${path} يجب أن يكون أقل من ${less}',
|
||||
moreThan: '${path} يجب أن تكون أكبر من ${more}',
|
||||
positive: '${path} يجب أن يكون رقما موجبا',
|
||||
negative: '${path} يجب أن يكون رقما سالبا',
|
||||
integer: '${path} يجب أن يكون رقما',
|
||||
},
|
||||
date: {
|
||||
min: '${path} يجب أن يكون حقل في وقت لاحق من ${min}',
|
||||
max: '${path} يجب أن يكون حقل في وقت سابق من ${max}',
|
||||
},
|
||||
boolean: {},
|
||||
|
||||
object: {
|
||||
noUnknown: '${path} حقل لا يمكن أن يكون مفاتيح غير محددة في شكل وجوه',
|
||||
},
|
||||
array: {
|
||||
min: 'يجب أن يكون ${path} حقل على الأقل ${min} من العناصر',
|
||||
max: '${path} يجب أن يكون الحقل أقل من أو يساوي إلى ${max} من العناصر',
|
||||
},
|
||||
};
|
||||
@@ -348,7 +348,7 @@
|
||||
"session_expired": "Session Expired!",
|
||||
"this_report_does_not_contain_any_data_between_date_period": "This report does not contain any data between date period.",
|
||||
"welcome_organization_account_has_been_created": "👋 Welcome, You organization account has been created, Sign in now!",
|
||||
"the_phone_number_already_used_in_another_account": "he phone number is already used in another account",
|
||||
"the_phone_number_already_used_in_another_account": "the phone number is already used in another account",
|
||||
"the_email_already_used_in_another_account": "The email is already used in another account",
|
||||
"hide_filter": "Hide filter",
|
||||
"show_filter": "Show filter",
|
||||
@@ -1109,5 +1109,17 @@
|
||||
"payment_made_empty_status_description": "The payments transactions will appear once payments made to purchases invoices.",
|
||||
"bill_empty_status_description": "Record purchases transactions from vendors who make no or partial payment and help you keep track of accounts payable with a vendor.",
|
||||
"invoices_empty_status_description": "Record sales transactions from customers who make no or partial payment and help you keep track of accounts receivable with a customer.",
|
||||
"receipt_empty_status_description": "Create a sales receipt any time your customer immediately pays for products or services at the time of sale."
|
||||
"receipt_empty_status_description": "Create a sales receipt any time your customer immediately pays for products or services at the time of sale.",
|
||||
"there_were_no_purchases_during_the_selected_date_range": "There were no purchases during the selected date range.",
|
||||
"there_were_no_sales_during_the_selected_date_range": "There were no sales during the selected date range.",
|
||||
"there_were_no_inventory_transactions_during_the_selected_date_range": "There were no inventory transactions during the selected date range.",
|
||||
"filter_": "Filter...",
|
||||
"all_rights_reserved": "© {pre}-{current} All Rights Reserved.",
|
||||
"congrats_your_account_has_been_created_and_invited": "Congrats! Your account has been created and invited to <strong>{organization_name} </strong> organization successfully.",
|
||||
"it_s_time_to_make_your_accounting_really_simple": "It's time to make your accounting really simple!",
|
||||
"while_we_set_up_your_account_please_remember_to_verify_your_account": "while we set up your account, please remember to verify your account by clicking on the link we sent to your registered email address",
|
||||
"something_went_wrong": "Something went wrong!",
|
||||
"please_refresh_the_page": "Please refresh the page",
|
||||
"waiting_to_redirect": "Waiting to redirect",
|
||||
"refresh_the_page_if_redirect_not_worked": "Refresh the page if redirect not worked."
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
import printValue from '../printValue';
|
||||
|
||||
export const locale = {
|
||||
mixed: {
|
||||
default: '${path} is invalid',
|
||||
|
||||
Reference in New Issue
Block a user