Translation commands
To be able to cover the most of the use cases for translations, Craftable PRO comes with several commands.
Scan translations
To rescan paths defined in the config and search for new translatable strings (see Translations Scanners), run:
php artisan craftable-pro:scan-translationsPublish translations
To publish translated groups defined in config file (see Translations Publishing), run:
php artisan craftable-pro:publish-translationsGenerate permission translations
If you want to have human-readable permission titles in permissions manager (instead of for example craftable-pro.posts.index), you can generate permission translations and translate them in Translation manager (see Translatable permissions).
php artisan craftable-pro:generate-permission-translationsGenerate locale translations
If you want to have human-readable locale titles (instead of for example en_GB), you can generate locale translations and translate them in Translation manager.
php artisan craftable-pro:generate-locale-translationsLast updated on December 19, 2024