Custom language files
I'm trying to override language files.
I added several translations strings and I need to have custom laguage for frontend.
Where do I have to place my custom language files?
Hi @ottopodo ,
can you please mention the framework version. ?
First of all, create a package for it, create lang files in this package and override that view files which languages need to be change.
Now in overridden view, use your translation and remove the shop translation.
Note - You need to declare type hint for your translation in your service provider.
Bagisto 1.1 and Laravel 6.18.1
@rahul Thank you I added:
$this->loadTranslationsFrom(DIR . '/../Resources/lang', 'shop');
to my service provider Boot Method and my language files in package Resources/lang and it works.