Search code examples
phplaravelmultilinguallaravel-localization

Laravel localization, how to get custom language value


I have az/app.php, en/app.php and ru/app.php language files in resources/lang directory, let's say app language is en right know, but I wanna get az language value without changing app language. trans('app.Fransa') works with current app language so if it is en it gives France, but there is a places in app I need somehow call trans('az.app.fransa') like this, but this way not works


Solution

  • trans('app.Fransa', [], 'az');