Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(admin-ui): Add missing attributes translations #5155

Merged
merged 3 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/weak-carpets-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@medusajs/admin-ui": patch
"@medusajs/admin": patch
---

feat(admin, admin-ui): Add missing attributes translations
5 changes: 5 additions & 0 deletions packages/admin-ui/ui/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,17 @@
"login-card-password": "Password",
"login-card-forgot-your-password": "Forgot your password?",
"metadata-add-metadata": "Add Metadata",
"product-attributes-section-title": "Attributes",
"product-attributes-section-edit-attributes": "Edit Attributes",
"product-attributes-section-dimensions": "Dimensions",
"product-attributes-section-configure-to-calculate-the-most-accurate-shipping-rates": "Configure to calculate the most accurate shipping rates",
"product-attributes-section-customs": "Customs",
"product-attributes-section-cancel": "Cancel",
"product-attributes-section-save": "Save",
"product-attributes-section-height": "Height",
"product-attributes-section-width": "Width",
"product-attributes-section-length": "Length",
"product-attributes-section-weight": "Weight",
"product-attributes-section-mid-code": "MID Code",
"product-attributes-section-hs-code": "HS Code",
"product-attributes-section-country-of-origin": "Country of origin",
Expand Down
5 changes: 5 additions & 0 deletions packages/admin-ui/ui/public/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,17 @@
"login-card-password": "Mot de passe",
"login-card-forgot-your-password": "Mot de passe oublié ?",
"metadata-add-metadata": "Ajouter des métadonnées",
"product-attributes-section-title": "Attributs",
"product-attributes-section-edit-attributes": "Modifier les attributs",
"product-attributes-section-dimensions": "Dimensions",
"product-attributes-section-configure-to-calculate-the-most-accurate-shipping-rates": "Configurer pour calculer les tarifs d'expédition les plus précis",
"product-attributes-section-customs": "Douanes",
"product-attributes-section-cancel": "Annuler",
"product-attributes-section-save": "Enregistrer",
"product-attributes-section-height": "Hauteur",
"product-attributes-section-width": "Largeur",
"product-attributes-section-length": "Longeur",
"product-attributes-section-weight": "Poids",
"product-attributes-section-mid-code": "Code MID",
"product-attributes-section-hs-code": "Code HS",
"product-attributes-section-country-of-origin": "Pays d'origine",
Expand Down
5 changes: 5 additions & 0 deletions packages/admin-ui/ui/public/locales/pt/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,17 @@
"login-card-password": "Senha",
"login-card-forgot-your-password": "Esqueceu sua senha?",
"metadata-add-metadata": "Adicionar Metadados",
"product-attributes-section-title": "Atributos",
"product-attributes-section-edit-attributes": "Editar Atributos",
"product-attributes-section-dimensions": "Dimensões",
"product-attributes-section-configure-to-calculate-the-most-accurate-shipping-rates": "Configure para calcular as taxas de envio mais precisas",
"product-attributes-section-customs": "Alfândegas",
"product-attributes-section-cancel": "Cancelar",
"product-attributes-section-save": "Salvar",
"product-attributes-section-height": "Hauteur",
"product-attributes-section-width": "Altura",
"product-attributes-section-length": "Comprimento",
"product-attributes-section-weight": "Pesar",
"product-attributes-section-mid-code": "Código MID",
"product-attributes-section-hs-code": "Código HS",
"product-attributes-section-country-of-origin": "País de origem",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,32 @@ const ProductAttributesSection = ({ product }: Props) => {

return (
<>
<Section title="Attributes" actions={actions} forceDropdown>
<Section
title={t("product-attributes-section-title", "Attributes")}
actions={actions}
forceDropdown
>
<div className="gap-y-xsmall mb-large mt-base flex flex-col">
<h2 className="inter-base-semibold">
{t("product-attributes-section-dimensions", "Dimensions")}
</h2>
<div className="gap-y-xsmall flex flex-col">
<Attribute attribute="Height" value={product.height} />
<Attribute attribute="Width" value={product.width} />
<Attribute attribute="Length" value={product.length} />
<Attribute attribute="Weight" value={product.weight} />
<Attribute
attribute={t("product-attributes-section-height", "Height")}
value={product.height}
/>
<Attribute
attribute={t("product-attributes-section-width", "Width")}
value={product.width}
/>
<Attribute
attribute={t("product-attributes-section-height", "Length")}
value={product.length}
/>
<Attribute
attribute={t("product-attributes-section-weight", "Weight")}
value={product.weight}
/>
</div>
</div>
<div className="gap-y-xsmall flex flex-col">
Expand Down