R
R
Rishat Sultanov2017-08-25 18:08:56
Laravel
Rishat Sultanov, 2017-08-25 18:08:56

How to localize a package from vendora?

Good evening!
If I used to do localization in resources-lang-..
Now I have a need to translate one package that I have in vendor.
How can I implement localization if I want to later contribute this package to people who pull it and so that when they install this package, they also have localization along with the package?
Also a parallel question.
Am I putting my code into someone else's package correctly? I cloned the package separately without laravel and am making changes there. I also simultaneously pulled the project into another folder where already with laravel, I check it and localize it visually. But it seems to me that this is wrong. Where to dig? Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
artemmityushov, 2017-08-26
@artemmityushov

You make your own with localization, put it on github, and in composer you already register it to your source.
In this case, the best option.

O
owl-cat, 2017-09-29
@owl-cat

Copy localization files from vendor to yours in resources/lang

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question