feat(apply-i18n-placeholders): extend schema, translate and use in .tsx (#12264)

This extends the `$schema.json` by the 4 placeholders, later used in `product-create-general-section.tsx`. The placeholders affected by this are for the title, subtitle, handle and description. Should be all on this page. There is no plain / hard-coded text left in there. The translations were made for each accordingly.
This commit is contained in:
LennarX
2025-04-28 10:31:03 +02:00
committed by GitHub
parent 05b43ecdb5
commit 5f4a859911
24 changed files with 192 additions and 92 deletions
@@ -27,7 +27,7 @@ export const ProductCreateGeneralSection = ({
<Form.Item>
<Form.Label>{t("products.fields.title.label")}</Form.Label>
<Form.Control>
<Input {...field} placeholder="Winter jacket" />
<Input {...field} placeholder={t("products.fields.title.placeholder")} />
</Form.Control>
</Form.Item>
)
@@ -43,7 +43,7 @@ export const ProductCreateGeneralSection = ({
{t("products.fields.subtitle.label")}
</Form.Label>
<Form.Control>
<Input {...field} placeholder="Warm and cosy" />
<Input {...field} placeholder={t("products.fields.subtitle.placeholder")} />
</Form.Control>
</Form.Item>
)
@@ -62,7 +62,7 @@ export const ProductCreateGeneralSection = ({
{t("fields.handle")}
</Form.Label>
<Form.Control>
<HandleInput {...field} placeholder="winter-jacket" />
<HandleInput {...field} placeholder={t("products.fields.handle.placeholder")} />
</Form.Control>
</Form.Item>
)
@@ -80,7 +80,7 @@ export const ProductCreateGeneralSection = ({
{t("products.fields.description.label")}
</Form.Label>
<Form.Control>
<Textarea {...field} placeholder="A warm and cozy jacket" />
<Textarea {...field} placeholder={t("products.fields.description.placeholder")} />
</Form.Control>
</Form.Item>
)