storyblok / field-plugin

Create and deploy Storyblok Field Plugin
https://www.storyblok.com/docs/plugins/field-plugins/introduction
25 stars 3 forks source link

Add selected interface app language #344

Closed maximilian-schwarz closed 5 months ago

maximilian-schwarz commented 5 months ago

Is your feature request related to a problem? Please describe. When I create a new field type plugin, I have no possibility to deliver e.g. texts, labels, descriptions, buttons in the language of the user, because I do not know the interface language of the user.

Describe the solution you'd like Maybe add the storyblok interface language from the user to the message that the field type wrapper (parent) sends to the field type (child) via postMessage(). Now you can set the interface language in the Vue or React app and add the correct translations. If the language does not exist in the field plugin you can set a fallback.

eunjae-lee commented 5 months ago

Hi @maximilian-schwarz thanks for reporting this issue. I agree you should have both interface lang and story lang. We'll take a look internally and will let you know when we work on this feature :)

maximilian-schwarz commented 5 months ago

@eunjae-lee Glad to hear it. I'm really looking forward to the feedback after it has been discussed internally.