Skip to content

Text label is not translated. #2

@mfilteau

Description

@mfilteau

When attaching different translations to a field using the mask plugin, the proper translation is not selected.

label: {
   en: 'Phone Number',
   fr: 'Numéro de Téléphone',
}

Payloadcms label uses the following pattern to translate the label text.

import { useTranslation } from 'react-i18next'

...

  const { i18n } = useTranslation()

  {getTranslation(label, i18n)}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions