vanilophp / framework

The truly Laravel E-commerce Framework
https://vanilo.io
MIT License
818 stars 102 forks source link

How translate framework? #87

Closed lucasres closed 4 years ago

lucasres commented 4 years ago

Problem

Based in #15 the framework work with __() for localization. But i cannot found where i place my file for custom the strings. My app in EN languague then i try place in

But dont have success

Environment

laravel/framework v7.28.2 vanilo/framework 1.2.1 php 7.3

fulopattila122 commented 4 years ago

Just put it under /resources/lang/es.json, see: https://laravel.com/docs/7.x/localization#using-translation-strings-as-keys

lucasres commented 4 years ago

Thanks solve my problem. But i feeling miss this part in documentation and i think that is very important

fulopattila122 commented 4 years ago

This is the standard Laravel way, and since there's no deviation from the Laravel common-sense, I don't think we need to repeat the Laravel Documentation.

lucasres commented 4 years ago

Maybe for new users in Laravel it is good