This package provides new helper functions that take care of handling all the translation hassle and do it for you.
Begin by installing this package through Composer. Just run following command to terminal-
composer require baselrabia/laravel-translate-message
In this package, you will be provided by two new Helper function
// two underscore and t function
__t("app.Tranlation Word");
// three underscore Function
___("app.Tranlation Word");
This Two helpers is a wrapper around the laravel helper trans()
, __()
that offer the translation of text from the lang file resource resource/lang/en/app.php
our helpers allow you to write your message once when you call the function and it will translate it for you automatically and write there translating in resources/lang
folder so if you would like to change the automated translation you can edit them there.
As you see it takes the hassle of going to every /lang/..
folder to write the translation for specific lang
If you think something important is missing or should be different based on your experience, I'd love to hear it! If you have suggestions for improving this package, open an issue with your suggestion.
- Fork the project
- Create a new branch with your changes:
$ git checkout -b my-feature
- Save your changes and create a commit message telling you what you did:
$ git commit -m "feature: My new feature"
- Submit your changes:
$ git push origin my-feature
This repository is under MIT license. You can see the LICENSE file for more details. 😉
This project was developed with ❤️ by @Basel Rabia
If it helped you, give it ⭐, it will help me too 😉