Laravel Translation Sheet is a package by Nassif Bourguig for translating Laravel language files using Google Sheets. What I love about this idea/package, is how easy it makes the process of collaborating on language translations with a standard tool like Google Sheets.
The way that you interact with Google Sheets is through a series of artisan commands and the Google Sheets API:
# Setup and prep commands php artisan translation_sheet:setup php artisan translation_sheet:prepare # Publish translation to Google Sheets php artisan translation_sheet:push
Once the translations are ready to go, you can use the pull command to pull the translations from the spreadsheet and write to the language-specific files in your Laravel application:
php artisan translation_sheet:pull
Using the pull command syncs the translations from Google Sheets the configured language translation files. You are free to do a diff on them through version control, test them out, and finally commit them to your application.
Once you receive translations and have pulled them into your application, you can lock the sheet to avoid conflicts:
# Lock the sheet to avoid conflicts php artisan translation_sheet:lock
Filed in: Laravel Packages
Join the weekly newsletter and never miss out on new tips, tutorials, and more.
- Senior PHP Developer (Full Stack | CakePHP | Laravel | Vue | jQuery)
- Senior Laravel Developer (Full-Stack)
Volunteer Vision GmbH
- Full-Stack Developer
Nu Image Medical
- Senior Software Developer
Remote (US ONLY)/Kenilworth, NJ
- Senior Back-end Laravel API Developer - Immediate Contract (Full Time)
ApproveMe // Document Signing
- Web Development Project Manager
- Experienced Laravel/VueJS Developer (Freelance)
Remote (preferably in the US)