Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Translate labels #11

Closed
fabioquarantini opened this issue Dec 14, 2022 · 4 comments · Fixed by #13
Closed

Translate labels #11

fabioquarantini opened this issue Dec 14, 2022 · 4 comments · Fixed by #13

Comments

@fabioquarantini
Copy link

Hello,
is it possible to translate the labels or other fileds?

Thank you

@zanami
Copy link

zanami commented Dec 22, 2022

I guess labels should be configurable via formSubmissionOverrides and formOverrides in payload.config.ts
It's just not yet implemented (see here and here).

This should work but it doesn't

    formBuilder({
      formOverrides: {
        labels: {
          singular: {
            en: "Form",
            xx: "Xxxxx",
          },
          plural: {
            en: "Forms",
            xx: "Xxxxxx",
          },
        },
      },

@fabioquarantini
Copy link
Author

I mean the values of the labels like in this image:

Payload.png

@jacobsfletch jacobsfletch linked a pull request Dec 23, 2022 that will close this issue
@zanami
Copy link

zanami commented Dec 24, 2022

@fabioquarantini Oh I see, that's another story
@jacobsfletch #13 doesn't seem to fix "Forms" and "Form submissions" collections labels translation. Should I start a separate issue?

@jacobsfletch
Copy link
Member

@fabioquarantini values can be localized using Payload's field localization https://payloadcms.com/docs/configuration/localization#field-by-field-localization. It allows you to save a different value for each of your locales.

@zanami that would be great! Your description above makes sense.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants