How to localize something coming from theme customizer

If it’s a text field, why would you? The user can put in whatever they want in their own language. If it’s some sort of select then you just localize the options.

Regardless, you’re not supposed to put variables or code inside __() functions because that’s not how translations work. WPML has its own way of translating theme options that doesn’t involve __() functions for this reason.

error code: 523