Before we can start using Yii2's translation features, we need to define the application our language is written in. Application languages in Yii2 are defined by a unique ID consisting of a language ID as defined by the ISO-639 format and a region ID defined by the ISO-3166 format. As an example,
en-US represents English as the spoken language in the United States of America.
Yii2 defines two language properties within our configuration file that we can define. The first
sourceLanguage property represents the language or locale our application is written in and generally ...