Detect editor locale while in preview mode

Thanks for the reply, @JuliusGD, it was helpful. I was mostly interested in accessing state within my react code. I was able to find what I need in this thread: Accessing builderState in custom components withChildren - #4 by will