跳转到主要内容

必需配置

{
  "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

常见问题

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