Ozal  Zarbaliyev
Ozal Zarbaliyev

Reputation: 638

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

Upvotes: 3

Views: 1205

Answers (1)

J. Doe
J. Doe

Reputation: 1742

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

Upvotes: 4

Related Questions