This contains development tools for creating .pot files.
- In your plugin, require this dependency:
composer require mapkyca/known-language-tools --dev - Copy and rename
vendor/mapkyca/known-language-tools/Sample.Gruntfile.jsto./Gruntfile.js - Copy and rename
vendor/mapkyca/known-language-tools/Sample.package.jsonto./package.jsonand edit accordingly - Make a
./languagesdirectory in your project - Install grunt, and its dependencies (usually
npm install --only=dev) grunt build-lang
- Author: Marcus Povey https://www.marcus-povey.co.uk
- Blog post https://www.marcus-povey.co.uk/2019/04/15/improved-known-i18n-development-tools/