How do I programmatically add a new language?

02/07/2018


I am using Drupal 8 on a multi-lingual site which uses Arabic and French.

I need to programmatically add a new language from a custom module. How can I do it?

قالب وردپرس