From b32abc04178614299b4140953c5e0a4ca4da8158 Mon Sep 17 00:00:00 2001 From: elforjani13 <39470382+elforjani13@users.noreply.github.com> Date: Sun, 14 Nov 2021 11:53:35 +0200 Subject: [PATCH] fix: fix localization. --- src/components/AccountsSelectList.js | 3 ++- src/components/AccountsSuggestField.js | 2 +- src/components/Contacts/utils.js | 3 ++- src/components/ItemsSuggestField.js | 4 ++-- .../QuickWriteVendorDrawer/QuickWriteVendorDrawerContent.js | 3 ++- src/lang/ar/index.json | 3 ++- src/lang/en/index.json | 5 +++-- 7 files changed, 14 insertions(+), 9 deletions(-) diff --git a/src/components/AccountsSelectList.js b/src/components/AccountsSelectList.js index 9ed337284..354b80bb1 100644 --- a/src/components/AccountsSelectList.js +++ b/src/components/AccountsSelectList.js @@ -3,6 +3,7 @@ import { MenuItem, Button } from '@blueprintjs/core'; import { Select } from '@blueprintjs/select'; import * as R from 'ramda'; import classNames from 'classnames'; +import intl from 'react-intl-universal' import { MenuItemNestedText, FormattedMessage as T } from 'components'; import { filterAccountsByQuery } from './utils'; @@ -16,7 +17,7 @@ const createNewItemRenderer = (query, active, handleClick) => { return ( diff --git a/src/components/AccountsSuggestField.js b/src/components/AccountsSuggestField.js index 55697a4fe..c28739947 100644 --- a/src/components/AccountsSuggestField.js +++ b/src/components/AccountsSuggestField.js @@ -18,7 +18,7 @@ const createNewItemRenderer = (query, active, handleClick) => { return ( diff --git a/src/components/Contacts/utils.js b/src/components/Contacts/utils.js index 59d0a4a8c..58b453981 100644 --- a/src/components/Contacts/utils.js +++ b/src/components/Contacts/utils.js @@ -1,4 +1,5 @@ import React from 'react'; +import intl from 'react-intl-universal'; import { MenuItem } from '@blueprintjs/core'; // Filter Contact List @@ -34,7 +35,7 @@ export const createNewItemRenderer = (query, active, handleClick) => { return ( { return ( } + /> diff --git a/src/lang/ar/index.json b/src/lang/ar/index.json index 9731ca8ad..913afc98d 100644 --- a/src/lang/ar/index.json +++ b/src/lang/ar/index.json @@ -1479,5 +1479,6 @@ "sms_notification.estimate_details.type": "تفاصيل فاتورة عرض الاسعار", "sms_notification.payment_details.type": "شكر علي عملية الدفع", "sms_notification.receipt_details.type": "تفاصيل إيصال البيع", - "personal": "المحمول" + "personal": "المحمول", + "list.create":"إضافة {value}" } \ No newline at end of file diff --git a/src/lang/en/index.json b/src/lang/en/index.json index a13f1b07c..3a1f34b77 100644 --- a/src/lang/en/index.json +++ b/src/lang/en/index.json @@ -1400,7 +1400,7 @@ "cash_flow_drawer.label_transaction_type": "Transaction type", "cash_flow.drawer.label_transaction_no": "Transaction number", "cash_flow.drawer.label_transaction": "Cash flow Transaction {number}", - "cash_flow.transactions.no_results": "There are no deposit/withdrawal transactions on the current account.", + "cash_flow.account_transactions.no_results": "There are no deposit/withdrawal transactions on the current account.", "cash_flow_balance_in": "Balance in {name}", "cash_flow.accounts.no_results": "There are no cashflow accounts with current filter criteria.", "cash_flow_money_in": "Money In", @@ -1466,5 +1466,6 @@ "sms_notification.estimate_details.type": "Sale estimate details", "sms_notification.payment_details.type": "Payment receive thank you.", "sms_notification.receipt_details.type": "Sale receipt details", - "personal": "Personal" + "personal": "Personal", + "list.create":"Create {value}" } \ No newline at end of file