Answer the question
In order to leave comments, you need to log in
How to add additional language to Yii2 system messages?
The Kazakh language is defined as "KK", the framework has built-in translations of error messages, which are here: @yii/messages/kk
.
Is there a trivial way to make yii2 translate messages with KZ
instead of KK
? Those. add a language folder KZ
and force YII2 to go there if necessary.
Trivial, means to configure directly from the configuration file.
Answer the question
In order to leave comments, you need to log in
I did not find a "trivial" way. I solved it by changing "basePath" to a directory inside the project and copying the kk folder to kz.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question