跳转到主要内容

所需配置

{
  "storage": {
    "adapter": "smartling",
    "config": {
      "projectID": "your-project-id",
      "userIdentifier": "your-smartling-user-identifier",
      "userSecretEnv": "SMARTLING_USER_SECRET"
    }
  }
}

必需的密钥

export SMARTLING_USER_SECRET="your-smartling-user-secret"
userSecret 配置中不支持内联。请仅使用环境变量。

可选配置字段

  • targetLanguages
  • timeoutSeconds (默认为 30)

常见问题

  • 缺少密钥:导出 SMARTLING_USER_SECRET 在同一个 shell 会话中
  • 缺少用户标识符:设置 storage.config.userIdentifier
  • 区域设置不匹配:对齐 targetLanguages 与你的项目本地化设置