clsmedia/

ci4-translation-finder

CodeIgniter 4 中的翻译字符串查找器。

v1.0.3 2022-06-27 10:30 UTC

This package is auto-updated.

Last update: 2024-09-16 18:33:16 UTC


README

CodeIgniter 4 翻译字符串查找器

快速入门

  1. 使用composer安装 composer require clsmedia/ci4-translation-finder
  2. 使用 spark 生成列表 php spark translations:find

用法

一旦将包添加到项目中,您就可以开始使用它来查找翻译字符串。要查找应用文件中所有的 lang() 参数,使用CLI php spark translations:find

命令执行示例结果

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

现在您可以使用这个列表来准备在 App/Language/ 中相应的翻译字符串。