Changes on language file not reflecting.
-
I just changed some translation in app.php in shop package (default bagisto package). ie sale => Sale, New => New Arrival. But the changes were not reflected.
this is the line to show language attribute.__('shop::app.products.new')
-
Hi @gwachhamit,
Which bagisto version are you using? Did you published your translation?
-
I'm using bagisto v1.3.1
I want to change the language text New to New Arrival (marked in image below),
'new' => 'New Arrival'
so updated in app.php file inside webkul/shop package. But it is not reflecting any changes.
-
Hi @gwachhamit,
I think you have changed in the wrong place may be. I am just assuming or may be a cached issue because I have done exact same thing and it's working fine.
-
I have changed in the file inside directory
packages/Webkul/Shop/src/Resources/lang/en/app.php
if this is not correct file, then which one is?
-
@gwachhamit said in Changes on language file not reflecting.:
packages/Webkul/Shop/src/Resources/lang/en/app.php
This is the right place and you are doing right also. The problem is that you are not publishing your lang file.
In short, just do one thing, change here, you will automatically get what I am trying to say.
resources/lang/vendor/shop/en/app.php
-
thank you, I forgot to publish.
-
Thanks for the update.
Also, if you like our support, you may give us the review here:- https://www.trustpilot.com/review/bagisto.com
That would be grateful for us.
Thanks & Regards,
Bagisto Team