C
C
Carlos Rodriguez2015-02-07 13:19:26
Yii
Carlos Rodriguez, 2015-02-07 13:19:26

Yii2. How to display the name of the month depending on the language?

The site has a couple of languages ​​(en, ru, ua, ...)
How to display the name of the month depending on the language?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-02-07
@TsarS

Yii::t('app','January');

app.php
return [
'January'=>'Январь',
];

https://github.com/yiisoft/yii2/blob/master/docs/g...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question