bagisto / laravel-pwa

Transform your website like Mobile Application while having full functionality of the website using Laravel PWA
https://bagisto.com/en/laravel-ecommerce-pwa/
MIT License
97 stars 59 forks source link

how to add language #107

Closed marcelowu closed 3 years ago

marcelowu commented 3 years ago

Captura de tela de 2020-11-19 12-31-24

bhanu-webkul commented 3 years ago

you can add multiple locale from admin pannel- settings>locale

marcelowu commented 3 years ago

done, but it doesn't work in PWA. is work in velocity theme

Captura de tela de 2020-11-19 13-16-39 Captura de tela de 2020-11-19 13-16-08

marcelowu commented 3 years ago

need install package.json? npm run production

shubhwebkul commented 3 years ago

Screenshot from 2020-11-19 22-31-52

shubhwebkul commented 3 years ago

You can click on language option on the sidebar to get languages

marcelowu commented 3 years ago

yes, always english.Do not change

Captura de tela de 2020-11-19 14-32-52

marcelowu commented 3 years ago

have to create or translate that file?

src/Resources/assets/js/lang/en.json

marcelowu commented 3 years ago

I've tried everything, and nothing, I need to create a file ? vendor/bagisto/pwa/src/Resources/assets/js/lang/pt_BR.json

shubhwebkul commented 3 years ago

Indeed! currently we are using en.json only, you need to translate file in whatever language you want.

That will be great if you will contribute in this repository.

marcelowu commented 3 years ago

after translating, which next step works, here it didn't work

marcelowu commented 3 years ago

is ok, sudo yarn development

Captura de tela de 2020-11-24 14-10-16

Captura de tela de 2020-11-24 14-07-04