Localization for the admin panel components #1252
Replies: 4 comments 6 replies
-
Beta Was this translation helpful? Give feedback.
-
@jmikrut sorry to tag you like this. But as I have your attention; the other thing I was checking in this discussion. Is if it would be possible to add translations to the labels and descriptions of fields in |
Beta Was this translation helpful? Give feedback.
-
I fully agree with @sosafe-steven-snoeijen suggestions. The current language switch should ONLY be used for switching the system language, and not for content, as the current position feels wrong. The content translation will need to be fully separate from the system language handeling and its controls will need to move to the content area like the yellow suggestions. By adding translations via label for each field feels right and Intuitive as well I also fully agree with @jmikrut that for the system translations, each USER will require a language preference similar as the access roles. Please do think this a step further, for evolving PLUGINs. In Drupal this issue is still not fully resolved after years of discussion, as some user will only use and accept a localized setup without requiring English at all. So always keep English the default language, with some possibility to hide it from backend. For this I believe already suggested somewhere else the possibility for the community to update payload's system localisation, so it could become a yarn/npm INSTALL OPTION for upcoming Version 2, that will most likely support custom backend themes as well. Please also consider adding an actual translation STATUS on the language switch buttons to provide user feedback on the missing translated content fields. |
Beta Was this translation helpful? Give feedback.
-
All of this is done and now released in |
Beta Was this translation helpful? Give feedback.
-
At the moment there is localization for data available through; Enabling in the Payload config.
But when switching the language in the admin panel does not translate:
Looking through the code, I think this could be implemented.
Here are the possible solutions:
CollectionConfig
could be expanded by expanding the current config for label/name and description.:This again with the use of useLocale in for example: /src/admin/components/forms/field-types/Text/Input.tsx#L68
Just checking in if this is a viable option, and if other people are interested in a feature like this.
Beta Was this translation helpful? Give feedback.
All reactions