studioazura/localize

允许管理员从后端UI覆盖插件本地化文件

安装: 0

依赖: 0

建议者: 0

安全: 0

星标: 4

关注者: 2

分支: 4

开放问题: 0

类型:winter-plugin

dev-master 2024-05-02 12:06 UTC

This package is auto-updated.

Last update: 2024-10-02 13:01:53 UTC


README

允许管理员从后端UI覆盖插件本地化文件。

新 winter:lang 命令行工具,可以为目标区域生成 lang 文件(添加缺失的翻译字符串)用于核心(后端、CMS、系统)语言文件。

生成的语言文件将写入应用的 lang 文件夹。

使用示例

php artisan winter:lang backend lang.php de

注意:如果没有提供参数,它们可以交互式地提供。

Description:
  Add missing language translation keys for target locale

Usage:
  winter:lang [<module> [<langFile> [<targetLocale>]]]

Arguments:
  module                The module for the language file
  langFile              The language file to work on
  targetLocale          The target locale for which to add missing keys

Options:
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
      --env[=ENV]       The environment the command should run under
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug