Skip to content

Commit

Permalink
Merge branch 'but/275-missing-translations' into 'dev'
Browse files Browse the repository at this point in the history
But/275 missing translations

See merge request PBSA/NEX!149
  • Loading branch information
amirkharaz committed Jul 5, 2022
2 parents 7ddd711 + e459101 commit a04d227
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const AccountUpdate = ({
)}
{desiredMembers !== undefined && desiredMembers >= 0 ? (
<Styled.DetailContainer>
<p>{`Desired ${memberType}`}</p>
<p>{counterpart.translate(`field.labels.desired_${memberType}`)}</p>
<p>{`${desiredMembers}`}</p>
</Styled.DetailContainer>
) : (
Expand Down
5 changes: 4 additions & 1 deletion src/modules/Market/components/OrderBook/OrderBook.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import counterpart from "counterpart";
import { Dispatch, SetStateAction } from "react";

import { PasswordModal, TransactionModal } from "../../../../common/components";
Expand Down Expand Up @@ -129,7 +130,9 @@ export const OrderBook = ({
className="ant-dropdown-link"
onClick={(e) => e.preventDefault()}
>
<Styled.ThresholdLabel>Threshold</Styled.ThresholdLabel>
<Styled.ThresholdLabel>
{counterpart.translate(`field.labels.threshold`)}
</Styled.ThresholdLabel>
<Styled.ThresholdValue>{threshold}</Styled.ThresholdValue>
<DownOutlined />
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const showUserOrderColumns = (
key: "expiration",
},
{
title: "Action",
title: counterpart.translate(`tableHead.action`),
dataIndex: "cancel",
key: "cancel",
render: (_value: string, record: any) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ export const KeyManagementTab = (): JSX.Element => {
validateTrigger="onChange"
>
<Checkbox.Group
options={["Active", "Owner", "Memo"]}
options={counterpart.translate(
`field.checkBoxes.key_management_group`
)}
onChange={handleCheckboxChange}
value={selectedKeys}
></Checkbox.Group>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const SecurityTab = (): JSX.Element => {
<Styled.Select>
{walletLockInMinutes.map((e, i) => (
<Styled.Option value={e} key={i}>
{e} minutes{" "}
{e} {counterpart.translate(`field.options.lock_wallet`)}
</Styled.Option>
))}
</Styled.Select>
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Settings/pages/SettingsPage/SettingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const SettingPage: NextPage = () => {

return (
<Layout
title="Settings"
title={counterpart.translate(`pages.settings.heading`)}
type="card-lrg"
heading={counterpart.translate(`pages.settings.heading`)}
description="Settings Page"
Expand Down
8 changes: 8 additions & 0 deletions src/translations/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,9 @@ export const en = {
mark_all_read: "Mark all as read",
},
field: {
options: {
lock_wallet: "minutes ",
},
placeholder: {
user_name: "Enter username",
password: "Enter password",
Expand Down Expand Up @@ -754,6 +757,10 @@ export const en = {
today: "Today",
yesterday: "yesterday",
order_to_cancel: "Order to cancel",
threshold: "Threshold",
desired_witnesses: "Desired witnesses",
desired_committees: "Desired committees",
desired_sons: "Desired sons",
},
comments: {
deposit_hbd:
Expand All @@ -765,6 +772,7 @@ export const en = {
"I understand Peerplays cannot recover my lost password",
securely_saved_my_password: "I have securely saved my password",
enable_notifications: "Enable Notifications",
key_management_group: ["Active", "Owner", "Memo"],
},
errors: {
user_name_first: "Please provide a valid username first",
Expand Down
10 changes: 9 additions & 1 deletion src/translations/ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,9 @@ export const ru = {
mark_all_read: "отметить все как прочитанное",
},
field: {
options: {
lock_wallet: "минуты ",
},
placeholder: {
user_name: "Введите имя пользователя",
password: "Введите пароль",
Expand Down Expand Up @@ -759,6 +762,10 @@ export const ru = {
today: "Сегодня",
yesterday: "вчерашний день",
order_to_cancel: "Заказ на отмену",
threshold: "Порог",
desired_witnesses: "Желаемые свидетели",
desired_committees: "Желаемые комитеты",
desired_sons: "Желаемые сыновья",
},
comments: {
deposit_hbd:
Expand All @@ -770,6 +777,7 @@ export const ru = {
"Я понимаю, что Peerplays не может восстановить мой утерянный пароль",
securely_saved_my_password: "Я надежно сохранил свой пароль",
enable_notifications: "Включить уведомления",
key_management_group: ["Активный", "Владелец", "Памятка"],
},
errors: {
user_name_first: "Сначала укажите действительное имя пользователя",
Expand Down Expand Up @@ -834,7 +842,7 @@ export const ru = {
successfully_withdrawn: "Успешно отозвано %(withdrawAmount)s %(symbol)s",
successfully_deposited:
"Успешно депонирован %(depositAmount)s %(symbol)s",
limit_order_successfully: "You have successfully created a limit order",
limit_order_successfully: "Вы успешно создали лимитный ордер",
saved_changes: "Вы успешно сохранили изменения",
account_upgraded_successfully:
"Ваша учетная запись успешно обновлена до пожизненной учетной записи членства",
Expand Down

0 comments on commit a04d227

Please sign in to comment.