跳转到主要内容

顶级键

  • locales
  • buckets
  • groups
  • llm
  • storage(用于sync为必填)
  • cache(可选)

locales

  • source(字符串,必填)
  • targets(字符串数组,必需)
  • fallbacks(对象,可选)

buckets

  • 桶名称到存储桶定义的映射
  • files 带有 fromto 模板

groups

  • 组名到组定义的映射
  • targets 数组
  • buckets 数组

llm

  • profiles profile 名称到 provider/model/prompt 的映射
  • 用于上下文构建覆盖的可选context_memory对象,包含providermodel
  • 支持的提供方: openai | azure_openai | anthropic | gemini | bedrock | lmstudio | groq | mistral | ollama
  • rules 数组,包含 prioritygroupprofile

storage

  • adapter: poeditor | lilt | lokalise | crowdin | phrase | smartling
  • config:适配器特定字段

cache

  • enabled 布尔值
  • endpoint 字符串
  • project_key_env 字符串
  • timeout_seconds 整数
有关示例,请参见 i18n config

CSV 工作流说明

在运行基于 CSV 的本地化流程时,请使用buckets.*.files[].fromto来指向.csv文件。
  • 按语言区域划分的文件通常在 [locale]to 路径中使用。
  • 共享的 CSV 文件可以复用相同的 fromto 路径。