-
Notifications
You must be signed in to change notification settings - Fork 0
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
Text label is not translated. #2
Comments
@mfilteau I'm working on this one now. I'm having an issue with i18n's useTranslation when passing the label prop. Is this the incorrect usage? Is it supposed to be the string "label" ? |
Here's the way it works:
You call useTranslation from react-18next and then apply it on the label with getTranslation. |
There is also an example in PayloadCMS documentation: |
Hmm, even after following the example, I'm still getting
when using Maybe my tsconfig is messed up? |
I remember getting something like that when I added react-i18next as a direct dependency in my project. There's a discussion about that issue here: |
Good to know, thank you @mfilteau! I'll try this out when I get home from work today. |
I got this working without any errors, but there is a warning now |
When attaching different translations to a field using the mask plugin, the proper translation is not selected.
Payloadcms label uses the following pattern to translate the label text.
The text was updated successfully, but these errors were encountered: