Translation strings finder for CodeIgniter 4
- Install with composer
composer require clsmedia/ci4-translation-finder
- Use
spark
to generate listphp spark translations:find
As soon as the package is added to the project, you can start using it to find strings for translation. To find all lang()
arguments in application files use CLI php spark translations:find
Example result of command execution:
Auth.activationNoUser
Auth.activationSuccess
Auth.alreadyRegistered
Auth.badAttempt
Auth.email
Auth.emailAddress
Auth.emailOrUsername
Auth.enterCodeEmailPassword
Auth.enterEmailForInstructions
Auth.forgotDisabled
Auth.forgotEmailSent
Auth.forgotNoUser
Auth.forgotPassword
Now you can use this list to prepare the corresponding translation strings in App/Language/