Skip to content

Commit

Permalink
loc: missing translations TaxSelector
Browse files Browse the repository at this point in the history
  • Loading branch information
Icaruk committed May 10, 2024
1 parent 60802fb commit 87b77f6
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 8 deletions.
7 changes: 6 additions & 1 deletion messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,10 @@
"total": "Total",
"group": "Group",
"result": "Result",
"components": "Components"
"components": "Components",
"noTax": "No tax",
"sellWithPremium": "{num}% (sell with premium)",
"sellWIthoutPremium": "{num}% (sell without premium)",
"sellOrderWithPremium": "{num}% (sell order with premium)",
"sellOrderWithoutPremium": "{num}% (sell order without premium)"
}
7 changes: 6 additions & 1 deletion messages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,10 @@
"total": "Total",
"group": "Grupo",
"result": "Resultado",
"components": "Componentes"
"components": "Componentes",
"noTax": "Sin impuestos",
"sellWithPremium": "{num} % (vender con premium)",
"sellWIthoutPremium": "{num} % (vender sin premium)",
"sellOrderWithPremium": "{num} % (orden de venta con premium)",
"sellOrderWithoutPremium": "{num} % (orden de venta sin premium)"
}
7 changes: 6 additions & 1 deletion messages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,10 @@
"total": "Total",
"group": "Groupe",
"result": "Résultat",
"components": "Composants"
"components": "Composants",
"noTax": "Pas de taxes",
"sellWithPremium": "{num} % (vendre avec premium)",
"sellWIthoutPremium": "{num} % (vendre sans premium)",
"sellOrderWithPremium": "{num} % (ordre de vente avec premium)",
"sellOrderWithoutPremium": "{num} % (ordre de vente sans premium)"
}
11 changes: 6 additions & 5 deletions src/pages/home/partials/TaxSelector.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Select } from "@mantine/core";
import { IconReceiptTax } from "@tabler/icons-react";
import * as m from "@/paraglide/messages.js";

export function TaxSelector({ tax, onChange = () => {} }) {
return (
Expand All @@ -8,11 +9,11 @@ export function TaxSelector({ tax, onChange = () => {} }) {
value={String(tax)}
onChange={(val) => onChange(+val)}
data={[
{ value: "0", label: "No tax" },
{ value: "4", label: "4% (sell with premium)" },
{ value: "8", label: "8% (sell without premium)" },
{ value: "6.5", label: "6.5% (sell order with premium)" },
{ value: "10.5", label: "10.5% (sell order without premium)" },
{ value: "0", label: m.noTax() },
{ value: "4", label: m.sellWithPremium({ num: 4 }) },
{ value: "8", label: m.sellWIthoutPremium({ num: 8 }) },
{ value: "6.5", label: m.sellOrderWithPremium({ num: 6.5 }) },
{ value: "10.5", label: m.sellOrderWithoutPremium({ num: 10.5 }) },
]}
leftSection={<IconReceiptTax />}
/>
Expand Down

0 comments on commit 87b77f6

Please sign in to comment.