Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.
Please follow the steps below to contribute with code.
Fork this repository and enter its directory.
Replace the placeholder <YOUR-USERNAME> with your GitHub username and run the command:
git clone https://github.com/<YOUR-USERNAME>/laravel-translations.git && cd laravel-translationsInstall all PHP dependencies using Composer, run the command:
composer installOnce finished, proceed to install Node dependencies. Run the command:
npm installCreate a new branch for your code. You may call it feature- / fix- / enhancement- followed by the name of what you are developing.
For example:
git checkout -b feature/feature-nameNow, you can work on this newly created branch.
💡 Tip: While developing, you may run the command
npm run watchto automatically rebuild any CSS and JavaScript files.
After you are done coding, please run Laravel Pint for code formatting:
composer formatFinally, run the Pest PHP for tests:
composer testYou may want to install your modified version of Laravel Translations UI inside a Laravel application, and test if it performs as expected.
In your Laravel application, modify the composer.json adding a repositories key with the path of Laravel Translations UI on your machine.
This will instruct composer to install Laravel Translations UI from your local folder instead of using the version on the official repository.
Example:
// File: composer.json
{
"require": {
"outhebox/laravel-translations": "*"
},
"repositories": [
{
"type": "path",
"url": "/home/myuser/projects/laravel-translations"
}
]
}Proceed with composer update.
If you changed any CSS or JavaScript files, you must build the assets for production before committing.
Run the command:
npm run productionCommit your changes. Please send short and descriptive commits.
For example:
git commit -m "adds route for feature X"If all tests are ✅ passing, you may push your code and submit a Pull Request.
Please write a summary of your contribution, detailing what you are changing/fixing/proposing.
When necessary, please provide usage examples, code snippets and screenshots. You may also include links related to Issues or other Pull Requests.
Once submitted, your Pull Request will be marked for review and people will send questions, comments and eventually request changes.
🙏 Thank you for your contribution!