Im developing a new project to community that is a all-in-one project with admin already configure with docker and more things. I have stopped in a part that i debug but dont understand why it happens on Yii2.
I have a folder with all my translations in "pt-BR" and "en-US". And have a configuration to translate all messages from frontend to the frontend/messages folder. When i set language to "pt-BR" is get all messages from "pt-BR" folder. If i set to "en-US" it dont get the messages from "en-US" folder. If i set to "en", it get the message from "en-US" folder.
<?php
namespace backend\components;
use yii\base\BootstrapInterface;
class LanguageSelector implements BootstrapInterface
{
public $supportedLanguages = [];
/**
* @inheritdoc
*/
public function bootstrap($app)
{
$app->language = 'en-US'; // en = works, en-US = dont works, pt-BR = work
}
}
But i dont know why the framework dont let get the message from en-US folder or my folder need have a different name? My translations are not phrases, but a key, like "Model.CreatedAt".