For some last-minute configuration, I would like to access the currently selected panel language in the Ready hook. I tried a lot of things, but unfortunately, I can’t get my head around it. So, not the user or site language, but the language of the content that is currently edited (for a multilingual site).
Any ideas…? Thanks!
I don’t think that’s possible, because changing the panel language happens client side, without loading the config
Hmm I see, thanks. The use case is that I would like to send the current language to the setting of the Kirby Locator field.
I also tried setting the locale as follows:
language: '{{kirby.language}}'
but, unfortunately the value is not replaced with the current language.
Is it possible to have that value replaced with the current language? It is working if for example I set the placeholder for a text field:
placeholder: '{{kirby.language}}'
For all I can see, the language
property of that field doesn’t support Kirby’s query language. Was just wondering why setting the language didn’t make any difference until I realized that it only works with mapbox 
Haha, it is also used for the geocoding, so the name of the city will be in the language of the panel.
Okay, so to support this the plugin needs to support Kirby’s query language?
Yes, the language option would need to support query language the it should work
@sylvainjule would you maybe consider adding this functionality? I think it would be a great feature to be able to save the geocoding data in the current language!