Auto enable CC from code

How I can enable CC and choose language from code? Not from UI component manually

Who can help? Please :slight_smile: