{"repo":"vemcogroup/laravel-translation","free":true,"listed":false,"github":"https://github.com/vemcogroup/laravel-translation","clone":"git clone https://github.com/vemcogroup/laravel-translation.git","description":"Translation package for Laravel to scan for localisations and up/download to poeditor","language":"PHP","stars":134,"topics":["poeditor","laravel-translation","translation","laravel"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Laravel Translation Description This package allows you to scan your app for translations and create your .json file. It also allows you to upload your base translation to poeditor. Installation You can install the package via composer: The package will automatically register its service provider. To publish the config file to config/translation.php run: This is the default contents of the configuration: If you want to use upload / download to poeditor features, you need to create a your base language in poeditor. Usage You are now able to use the translation commands scan/upload/download or create-js Scan files To scan your project for translations run this command: The command creates your base language .json file in /resources/lang The scanner normalizes escaped quotes in string literals, so both ('yes, I\\'m sure') and (\"yes, I'm sure\") end up as the same JSON key. Add terms To only add your terms run this command: This command doesn't remove unsused terms, so remember NOT to run upload command afterward. Upload translations To upload your translation terms to poeditor run this command: You are also able to upload your local translations if you have locale changes Download translation languages To download languages from poeditor run this command: Create JS language files To create public JS files run this command: You are now able to access all your languages as window.i18n from /public/lang when you include the .js file System translations If you want to translate system","default_branch":null,"files":null,"tree":[],"storefront":"/r/vemcogroup","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vemcogroup/laravel-translation/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}