[Plugin] Get locale in plugin

In this plugin: https://github.com/datocms/plugins/blob/master/yandex-translate/src/index.js

the active locale is stored in plugin.locale
How ever in my plugin, this property is always empty.

Is there an other way the get the current active locale?

Kind regards,

Hello @K-user it might be because the field on which you have enabled the plugin doesn’t have localization enabled?

1 Like

Awesome, that was indeed the reason, thx!

1 Like