baselrabia / laravel-translate-message
Provides new helper functions that take care of handling all the translation hassle and do it for you.
Requires
- php: ^7.1.3|^8.0
- illuminate/support: ~5.8.0|^6.0|^7.0|^8.0
This package is auto-updated.
Last update: 2024-10-10 15:53:22 UTC
README
Laravel Translate Message 🥳
This package provides new helper functions that take care of handling all the translation hassle and do it for you.
Installation
Begin by installing this package through Composer. Just run following command to terminal-
composer require baselrabia/laravel-translate-message
What Is New Here 🤔
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
What Happen Then !!
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
Contributing
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.
How to Contribute 💪
- 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
License 📝
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 😉