Skip to content

Commit

Permalink
Merge pull request #533 from DeXter-on-Radix/fix-translation-bugs
Browse files Browse the repository at this point in the history
Fix translation issues
  • Loading branch information
Radstakes authored Aug 8, 2024
2 parents a275394 + 13934e3 commit b39972b
Showing 3 changed files with 15 additions and 9 deletions.
14 changes: 10 additions & 4 deletions src/app/components/NavBar.tsx
Original file line number Diff line number Diff line change
@@ -3,7 +3,12 @@ import Image from "next/image";
import Link from "next/link";

import { useSelector } from "react-redux";
import { useAppDispatch, useAppSelector, useHydrationErrorFix } from "hooks";
import {
useAppDispatch,
useAppSelector,
useHydrationErrorFix,
useTranslations,
} from "hooks";
import { getSupportedLanguagesAsString } from "../state/i18nSlice";

import { i18nSlice } from "../state/i18nSlice";
@@ -32,11 +37,11 @@ interface NavbarItemMobileProps extends NavbarItemProps {
const NavItems: { path: string; title: string }[] = [
{
path: "/trade",
title: "Trade",
title: "trade",
},
{
path: "/rewards",
title: "Rewards",
title: "rewards",
},
];

@@ -219,13 +224,14 @@ function Logo() {
}

function NavbarItemsDesktop() {
const t = useTranslations();
return (
<>
<div className="hidden sm:flex h-full items-center flex-1 px-2 mx-2 z-10">
{NavItems.map((navItem, indx) => {
return (
<NavbarItemDesktop
title={navItem.title}
title={t(navItem.title)}
target={navItem.path}
key={indx}
/>
4 changes: 2 additions & 2 deletions src/app/state/locales/pt/rewards.json
Original file line number Diff line number Diff line change
@@ -5,14 +5,14 @@
"next_distribution": "Próxima distribuição",
"total_rewards": "Total de recompensas",
"claim_all_rewards": "Reivindicar todas",
"learn_more_about_rewards": "Saiba mais sobre a recompensas",
"learn_more_about_rewards": "Saiba mais sobre recompensas",
"claiming_rewards_loading": "Reivindicando recompensas...",
"claiming_rewards_success": "Recompensas reivindicadas",
"claiming_rewards_fail": "Erro ao reivindicar recompensas",
"how_did_everything_go": "Como tudo ocorreu? Envie um feedback",
"rewards_claimed": "Recompensas resgatadas",
"continue_trading_to_earn_more": "Continue negociando ou fazendo staking para ganhar mais e volte mais tarde.",
"go_back": "Voltar",
"no_rewards_to_claim": "Sem recompensas para reivindica",
"no_rewards_to_claim": "Sem recompensas para reivindicar",
"loading...": "Carregamento..."
}
6 changes: 3 additions & 3 deletions src/app/state/locales/pt/trade.json
Original file line number Diff line number Diff line change
@@ -49,7 +49,7 @@
"order_price": "Preço",
"filled_qty": "Qtd preenchida",
"completed_perc": "Concluído (%)",
"action": "Açâo",
"action": "Ação",
"status": "Status",
"pending": "Pendente",
"completed": "Completo",
@@ -62,8 +62,8 @@
"transaction_in_progress": "Transação em andamento...",
"best_buy": "Melhor compra",
"best_sell": "Melhor venda",
"no_order_history": "Sem histórico de pedidos",
"no_active_orders": "Sem pedidos ativos",
"no_order_history": "Sem histórico de ordens",
"no_active_orders": "Sem ordens ativas",
"no_trade_history": "Sem histórico de negociações",
"no_trades_have_occured_yet": "Nenhuma transação foi realizada ainda",
"market_action_token": "<$SIDE> <$TOKEN_SYMBOL> a <$ORDER_TYPE>",

0 comments on commit b39972b

Please sign in to comment.