macOS 命令行工具,用于操作和验证 strings 文件
排序表格,按键排序
stringray sort /path/to/base.lproj/Table.strings
移动键的前缀与给定字符串匹配的字符串 (或者使用多个 -p
参数传递的字符串)
stringray move /path/to/original.lproj/Table.strings /path/to/new.lproj/Table.strings -p cells.title
重命名字符串键,当键的前缀与给定字符串匹配时 (-p
参数),使用替换的键前缀字符串 (-r
参数)
stringray rename /path/to/original.lproj/Table.strings -p cells.title -r labels.title
检查 strings 表格或列出检查规则
stringray lint -i /path/to/original.lproj/Table.strings
stringray lint -l
如果您安装了 Homebrew,则可以使用 brew install g-Off/tools/stringray
安装此工具
使用 make
构建,或使用 make xcode
生成 Xcode 项目。