Skip to content

Commit

Permalink
Added translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Jessevdpoel committed Dec 11, 2023
1 parent 8d313e4 commit cfa7bd6
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 3 deletions.
6 changes: 6 additions & 0 deletions examples/magento-graphcms/locales/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ msgstr "Inklusive {0}"
msgid "Increase"
msgstr "Erhöhen"

msgid "Invalid date"
msgstr "Ungültiges Datum"

msgid "Invalid email address"
msgstr "Ungültige E-Mail-Adresse"

Expand Down Expand Up @@ -700,6 +703,9 @@ msgstr "Die Zahlung wurde nicht abgeschlossen, bitte versuchen Sie es erneut ode
msgid "The payment is refused, please try again or select a different payment method."
msgstr "Die Zahlung wurde abgelehnt, bitte versuchen Sie es erneut oder wählen Sie eine andere Zahlungsmethode aus."

msgid "There is a maximum of ‘{maxLength}’ characters"
msgstr "Es gibt maximal '{maxLength}' Zeichen"

msgid "This cart is assigned to {email}. Please sign in to continue shopping."
msgstr "Dieser Warenkorb ist {email} zugewiesen. Bitte melden Sie sich an, um mit dem Einkauf fortzufahren."

Expand Down
6 changes: 6 additions & 0 deletions examples/magento-graphcms/locales/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ msgstr "Including {0}"
msgid "Increase"
msgstr "Increase"

msgid "Invalid date"
msgstr "Invalid date"

msgid "Invalid email address"
msgstr "Invalid email address"

Expand Down Expand Up @@ -700,6 +703,9 @@ msgstr "The payment hasn't completed, please try again or select a different pay
msgid "The payment is refused, please try again or select a different payment method."
msgstr "The payment is refused, please try again or select a different payment method."

msgid "There is a maximum of ‘{maxLength}’ characters"
msgstr "There is a maximum of ‘{maxLength}’ characters"

msgid "This cart is assigned to {email}. Please sign in to continue shopping."
msgstr "This cart is assigned to {email}. Please sign in to continue shopping."

Expand Down
6 changes: 6 additions & 0 deletions examples/magento-graphcms/locales/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ msgstr "Incluyendo {0}"
msgid "Increase"
msgstr "Aumentar"

msgid "Invalid date"
msgstr "Fecha invalida"

msgid "Invalid email address"
msgstr "Dirección de correo electrónico no válida"

Expand Down Expand Up @@ -700,6 +703,9 @@ msgstr "El pago no se ha completado, inténtelo de nuevo o seleccione un método
msgid "The payment is refused, please try again or select a different payment method."
msgstr "El pago se ha rechazado, inténtelo de nuevo o seleccione un método de pago diferente."

msgid "There is a maximum of ‘{maxLength}’ characters"
msgstr "Hay un máximo de caracteres '{maxLength}'"

msgid "This cart is assigned to {email}. Please sign in to continue shopping."
msgstr "Este carrito está asignado a {email}. Inicie sesión para continuar comprando."

Expand Down
6 changes: 6 additions & 0 deletions examples/magento-graphcms/locales/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ msgstr "Incluant {0}"
msgid "Increase"
msgstr "Augmenter"

msgid "Invalid date"
msgstr "Date invalide"

msgid "Invalid email address"
msgstr "Adresse email invalide"

Expand Down Expand Up @@ -700,6 +703,9 @@ msgstr "Le paiement n'a pas été complété, veuillez réessayer ou sélectionn
msgid "The payment is refused, please try again or select a different payment method."
msgstr "Le paiement est refusé, veuillez réessayer ou sélectionner une autre méthode de paiement."

msgid "There is a maximum of ‘{maxLength}’ characters"
msgstr "Il y a un maximum de caractères '{maxLength}'"

msgid "This cart is assigned to {email}. Please sign in to continue shopping."
msgstr "Ce panier est assigné à {email}. Veuillez vous connecter pour continuer vos achats."

Expand Down
6 changes: 6 additions & 0 deletions examples/magento-graphcms/locales/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ msgstr "Incluso {0}"
msgid "Increase"
msgstr "Aumentare"

msgid "Invalid date"
msgstr "Data non valida"

msgid "Invalid email address"
msgstr "Indirizzo email non valido"

Expand Down Expand Up @@ -700,6 +703,9 @@ msgstr "Il pagamento non è stato completato, riprova o seleziona un metodo di p
msgid "The payment is refused, please try again or select a different payment method."
msgstr "Il pagamento è stato rifiutato, riprova o seleziona un metodo di pagamento differente."

msgid "There is a maximum of ‘{maxLength}’ characters"
msgstr "È consentito un massimo di caratteri \"{maxLength}\"."

msgid "This cart is assigned to {email}. Please sign in to continue shopping."
msgstr "Questo carrello è assegnato a {email}. Accedi per continuare gli acquisti."

Expand Down
6 changes: 6 additions & 0 deletions examples/magento-graphcms/locales/nl.po
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ msgstr "Inclusief {0}"
msgid "Increase"
msgstr "Verhogen"

msgid "Invalid date"
msgstr "Ongeldige datum"

msgid "Invalid email address"
msgstr "Ongeldig e-mailadres"

Expand Down Expand Up @@ -700,6 +703,9 @@ msgstr "De betaling is niet voltooid, probeer het opnieuw of selecteer een ander
msgid "The payment is refused, please try again or select a different payment method."
msgstr "De betaling is geweigerd, probeer het opnieuw of selecteer een andere betaalmethode."

msgid "There is a maximum of ‘{maxLength}’ characters"
msgstr "Er is een maximum van ‘{maxLength}’ karakters"

msgid "This cart is assigned to {email}. Please sign in to continue shopping."
msgstr "Deze winkelwagen is toegewezen aan {email}. Log in om verder te winkelen."

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { TextFieldElement } from '@graphcommerce/ecommerce-ui'
import { CurrencyEnum } from '@graphcommerce/graphql-mesh'
import { TypeRenderer } from '@graphcommerce/next-ui'
import { i18n } from '@lingui/core'
import React from 'react'
import { useFormAddProductsToCart } from '../AddProductsToCart'
import { ProductCustomizableFragment } from './ProductCustomizable.gql'
Expand Down Expand Up @@ -39,7 +40,12 @@ export function CustomizableAreaOption(props: CustomizableAreaOptionProps) {
label={title}
required={Boolean(required)}
validation={{ maxLength }}
helperText={(maxLength ?? 0) > 0 && `A maximum of ${maxLength}`}
helperText={
(maxLength ?? 0) > 0 &&
i18n._(/* i18n*/ 'There is a maximum of ‘{maxLength}’ characters', {
maxLength,
})
}
/>
</>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,17 @@ export function CustomizableFieldOption(props: CustomizableFieldOptionProps) {
validation={{
maxLength: {
value: maxLength,
message: i18n._(/* i18n*/ 'There is a maximum of ‘{maxLength}’ characters', {
message: i18n._(/* i18n*/ 'There is a maximum of ‘{maxLength}’ characters', {
maxLength,
}),
},
}}
helperText={(maxLength ?? 0) > 0 && `A maximum of ${maxLength} characters`}
helperText={
(maxLength ?? 0) > 0 &&
i18n._(/* i18n*/ 'There is a maximum of ‘{maxLength}’ characters', {
maxLength,
})
}
/>
</Box>
)
Expand Down

0 comments on commit cfa7bd6

Please sign in to comment.