跳转到主要内容

i18n.yml already exists; use --force to overwrite

原因:在配置已存在的情况下运行init 修复:
hyperlocalise init --force

storage config is required

原因:在没有顶级 sync 配置的情况下使用了 storage 命令。 修复:在i18n.yml中添加storage.adapterstorage.config

unsupported output format

原因:值 --output 错误。 修复项:
  • status:仅csv
  • synctextjson

unsupported file extensionrun 期间

原因:映射的源文件或目标文件使用了本地解析器不支持的扩展名。 修复:
  • 使用以下之一:.json.jsonc.yaml.yml.js.jsx.mjs.cjs.ts.tsx.mts.cts.properties.xml.resx.arb.xlf.xlif.xliff.po.html.liquid.md.mdx.strings.stringsdict.xcstrings.csv.ftl
  • 使用以下之一:.json.jsonc.yaml.yml.properties.xml.resx.arb.xlf.xlif.xliff.po.html.liquid.md.mdx.strings.stringsdict.xcstrings.csv.ftl
对于 .xcstrings,请确保目录具有一个 strings 对象,并且要么为变体/替换条目提供源语言本地化,要么提供可用作源文本的简单目录键。

提供者身份验证失败

原因:缺少/无效的环境令牌。 修复:在同一个 shell 会话中重新导出令牌,然后重新运行。