diff --git a/frontend/src/components/articles/GtinInput.vue b/frontend/src/components/articles/GtinInput.vue index 034fbc24..76178cdf 100644 --- a/frontend/src/components/articles/GtinInput.vue +++ b/frontend/src/components/articles/GtinInput.vue @@ -7,9 +7,9 @@ const { t } = useI18n(); const props = withDefaults(defineProps(), { floating: true, id: "gtin", - label: "articles.gtin", + label: "articles.gtin.label", max: 14, - placeholder: "articles.gtin", + placeholder: "articles.gtin.label", }); defineEmits<{ diff --git a/frontend/src/components/products/SkuInput.vue b/frontend/src/components/products/SkuInput.vue index fe7878b4..86f2d225 100644 --- a/frontend/src/components/products/SkuInput.vue +++ b/frontend/src/components/products/SkuInput.vue @@ -7,9 +7,9 @@ const { t } = useI18n(); const props = withDefaults(defineProps(), { floating: true, id: "sku", - label: "products.sku", + label: "products.sku.label", max: 32, - placeholder: "products.sku", + placeholder: "products.sku.label", }); defineEmits<{ diff --git a/frontend/src/components/taxes/TaxCodeInput.vue b/frontend/src/components/taxes/TaxCodeInput.vue index 4a2f0a09..571b36cb 100644 --- a/frontend/src/components/taxes/TaxCodeInput.vue +++ b/frontend/src/components/taxes/TaxCodeInput.vue @@ -7,9 +7,9 @@ const { t } = useI18n(); const props = withDefaults(defineProps(), { floating: true, id: "code", - label: "taxes.code", + label: "taxes.code.label", max: 4, - placeholder: "taxes.code", + placeholder: "taxes.code.label", }); defineEmits<{ diff --git a/frontend/src/i18n/en/articles.en.json b/frontend/src/i18n/en/articles.en.json index 006cdbb6..f0ec22d1 100644 --- a/frontend/src/i18n/en/articles.en.json +++ b/frontend/src/i18n/en/articles.en.json @@ -6,7 +6,13 @@ "title": "Delete article" }, "empty": "This list is empty.", - "gtin": "Global Trade Item Number (GTIN)", + "gtin": { + "alreadyUsed": { + "help": "Please use a different GTIN.", + "lead": "The GTIN is already used!" + }, + "label": "Global Trade Item Number (GTIN)" + }, "select": { "label": "Article", "placeholder": "Select an article" diff --git a/frontend/src/i18n/en/products.en.json b/frontend/src/i18n/en/products.en.json index 5b615faa..eb7b9813 100644 --- a/frontend/src/i18n/en/products.en.json +++ b/frontend/src/i18n/en/products.en.json @@ -6,7 +6,13 @@ "title": "Delete product" }, "empty": "This list is empty.", - "sku": "Stock-Keeping Unit (SKU)", + "sku": { + "alreadyUsed": { + "help": "Please use a different SKU.", + "lead": "The SKU is already used!" + }, + "label": "Stock-Keeping Unit (SKU)" + }, "sort": { "options": { "DisplayName": "Display name", diff --git a/frontend/src/i18n/en/taxes.en.json b/frontend/src/i18n/en/taxes.en.json index ba3f9983..ff417249 100644 --- a/frontend/src/i18n/en/taxes.en.json +++ b/frontend/src/i18n/en/taxes.en.json @@ -1,5 +1,11 @@ { - "code": "Code", + "code": { + "alreadyUsed": { + "help": "Please use a different tax code.", + "lead": "The tax code is already used!" + }, + "label": "Code" + }, "created": "The tax has been created.", "delete": { "confirm": "Do you really want to delete the following tax?", diff --git a/frontend/src/i18n/fr/articles.fr.json b/frontend/src/i18n/fr/articles.fr.json index 842aa4ae..fb95a011 100644 --- a/frontend/src/i18n/fr/articles.fr.json +++ b/frontend/src/i18n/fr/articles.fr.json @@ -6,7 +6,13 @@ "title": "Supprimer l’article" }, "empty": "Cette liste est vide.", - "gtin": "Global Trade Item Number (GTIN)", + "gtin": { + "alreadyUsed": { + "help": "Veuillez utiliser un autre GTIN.", + "lead": "Le GTIN est déjà utilisé !" + }, + "label": "Global Trade Item Number (GTIN)" + }, "select": { "label": "Article", "placeholder": "Sélectionnez un article" diff --git a/frontend/src/i18n/fr/products.fr.json b/frontend/src/i18n/fr/products.fr.json index 7164b56e..6969bb01 100644 --- a/frontend/src/i18n/fr/products.fr.json +++ b/frontend/src/i18n/fr/products.fr.json @@ -6,7 +6,13 @@ "title": "Supprimer le produit" }, "empty": "Cette liste est vide.", - "sku": "Stock-Keeping Unit (SKU)", + "sku": { + "alreadyUsed": { + "help": "Veuillez utiliser un autre SKU.", + "lead": "Le SKU est déjà utilisé !" + }, + "label": "Stock-Keeping Unit (SKU)" + }, "sort": { "options": { "DisplayName": "Nom d’affichage", diff --git a/frontend/src/i18n/fr/taxes.fr.json b/frontend/src/i18n/fr/taxes.fr.json index 6107d958..f9ad8f36 100644 --- a/frontend/src/i18n/fr/taxes.fr.json +++ b/frontend/src/i18n/fr/taxes.fr.json @@ -1,5 +1,11 @@ { - "code": "Code", + "code": { + "alreadyUsed": { + "help": "Veuillez utiliser un autre code de taxe.", + "lead": "Le code de taxe est déjà utilisé !" + }, + "label": "Code" + }, "created": "La taxe a été créée.", "delete": { "confirm": "Désirez-vous vraiment supprimer la taxe suivante ?", diff --git a/frontend/src/views/account/SignInView.vue b/frontend/src/views/account/SignInView.vue index ab1cfb8c..2d95e19d 100644 --- a/frontend/src/views/account/SignInView.vue +++ b/frontend/src/views/account/SignInView.vue @@ -45,7 +45,7 @@ const onSubmit = handleSubmit(async () => {