Contentful logo

Contentful Community

Get current selected Translation on UI Extension

Hello,

Im working in a UI Extension and i cant figurate out how to get the currently selected translations from the sidebar.

Example: I have 43 locales and I’m now working in the en-US, how do I get that value for other operations in this case “en-Us” when i start the UI extension.

Example 2: i have multiple locales, but now i have just selected es-US , es-EN , how do i get in the UI extension this values.

By the moment i can only get all the entries, but that doesn’t help

Thankz

I think this is what you are looking for:

https://www.contentful.com/developers/docs/extensibility/ui-extensions/sdk-reference/#receiving-notifications-about-locales-settings-change

thanks mate this solves my problem.