i18n Custom Previews #5337
Labels
area: i18n
area: ui/editor/preview-pane
good first issue
type: feature
code contributing to the implementation of a feature and/or user facing functionality
Is your feature request related to a problem? Please describe.
Currently there is no way to preview i18n entries in the template preview pane. No matter what language you have selected on the left side of the content editor, the right preview pane reflects the default locale.
Describe the solution you'd like
An additional field as part of
PreviewTemplateComponentProps
. It should be astring
that represents the current locale selected. This would be useful if the component being rendered by the preview changed based on the locale type.Additionally have the
entry
property update to whatever locale is selected on the left side. This waygetIn
should just reflect the new data source.Additional context
My use case: I have several languages and many custom previews. It would greatly help the content editors to see the current language they are editing in the preview pane rather than the default language.
The text was updated successfully, but these errors were encountered: