Skip to content

Commit

Permalink
fix: localize not found strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Aerilym committed Nov 5, 2024
1 parent 0b9c2ee commit 735c8ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export function NodeRegistrationForm({
<Form {...form}>
<form onSubmit={form.handleSubmit(onSubmit)} className="flex flex-col gap-4">
{!isRemoteFlagLoading && isRegistrationPausedFlagEnabled ? (
<span>Registrations are disabled</span>
<span>{dictionary('disabled')}</span>
) : null}
{stakedNode ? (
<>
Expand Down
3 changes: 2 additions & 1 deletion apps/staking/app/stake/[contract]/NodeStaking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ import { getContributionRangeFromContributors } from '@/lib/maths';

export default function NodeStaking({ contract }: { contract: string }) {
const { data, isLoading } = useStakingBackendSuspenseQuery(getOpenNodes);
const dictionary = useTranslations('general');

const node = useMemo(() => {
return data?.nodes?.find((node) => areHexesEqual(node.contract, contract));
Expand All @@ -55,7 +56,7 @@ export default function NodeStaking({ contract }: { contract: string }) {
) : node ? (
<NodeStakingForm node={node} />
) : (
<span>Node not found</span>
<span>{dictionary('nodeNotFound')}</span>
);
}

Expand Down
2 changes: 2 additions & 0 deletions apps/staking/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"you": "You",
"emptySlot": "Empty Contributor Slot",
"notFound": "Not Found",
"nodeNotFound": "Node Not Found",
"soon": "Soon",
"now": "now"
},
Expand Down Expand Up @@ -334,6 +335,7 @@
"maxContribution": "Max: <text-bold>{max}</text-bold>",
"feeNA": "N/A",
"feeNADescription": "Single contributor nodes cannot have an operator fee, as the operator already receives all rewards.",
"disabled": "Registrations are disabled",
"advancedOptions": {
"title": "Advanced Options",
"autoRegister": "Auto-Register",
Expand Down

0 comments on commit 735c8ca

Please sign in to comment.