> ## Documentation Index
> Fetch the complete documentation index at: https://hyperlocalise.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# LILT AI 适配器

> 为远程翻译拉取/推送同步配置 LILT AI。

## 必需的配置

```jsonc theme={null}
{
  "storage": {
    "adapter": "lilt",
    "config": {
      "projectID": "123",
      "apiTokenEnv": "LILT_API_TOKEN"
    }
  }
}
```

## 令牌解析

1. 由 `storage.config.apiTokenEnv` 命名的环境变量
2. fallback: `LILT_API_TOKEN`

`apiToken` 配置中的内联不受支持。请仅使用环境变量。

## 可选配置字段

* `targetLanguages`
* `timeoutSeconds`（默认为`30`）
* `pollIntervalMs`（默认为`1000`）
* `maxPolls`（默认为`60`）

## 拉取行为

* 为每个语言环境启动一个导出任务
* 轮询导出状态，直到作业完成
* 下载 JSON 工件（单个文件或 ZIP）
* 规范化条目并跳过空的键/区域设置/值行

## 常见问题

* 缺少 token：在同一个 shell 会话中导出 `LILT_API_TOKEN`
* 缺少项目 ID：设置 `storage.config.projectID`
* 超时或导出缓慢：增加 `timeoutSeconds`、`pollIntervalMs` 或 `maxPolls`
