In the In-Context editor, is it possible to run a callback when the target is selected/changed? For example, I’m looking to set a cookie locally so that server rendering can be aware of the target (eg, for date formatting).
Currently, the In-Context editor does not support the functionality to run a callback when the target language is selected or changed. This means that setting a cookie locally to inform server rendering of the target language for purposes such as date formatting cannot be directly achieved through the In-Context editor.
For now, the safest approach for handling server-aware things like date formatting during localization testing is to rely on a manual language toggle built into your staging environment alongside the editor.