I use this code, to add new directory with langs
$this->app['translator']->addNamespace(
$this->namespace,
$this->getLangPath() . DIRECTORY_SEPARATOR . 'lang'
);
$this->app['translator']->addJsonPath(
$this->getLangPath() . DIRECTORY_SEPARATOR . 'lang'
);
but I need use namespace to get this lang works with en.json file
if works fine with but if i need use name space like
it not works. How we can add namespace to json translator? https://laravel.com/docs/5.6/localization#using-translation-strings-as-keys
I use laravel 5.6
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire