全局多语言搜索主页

支持在简中、繁中、德、英、法、西、日、韩等 ... 翻译词条中进行高相关度模糊匹配检索。

内层语言:
请在上方搜索框内输入检索词条以获取翻译结果。

智能分词匹配与翻译替换

输入任意自然语言长句或段落,系统将提取其中包含的特定本地化条目并完成对应语种的动态替换。

选择翻译替换的目标语言:
输入源文本 (支持任何夹杂字符的长文本)
输入文本较长,分词匹配及翻译可能需要较长时间,请耐心等待。
智能替换结果

键值精确查询

已知特定 TextMapId 或 DialogueId 时,输入并检索其对应的全套语言翻译对照列表。

数据重载与同步中心

无需关闭服务即可热载或重新向 Hugging Face 私有仓库同步最新的翻译数据。

0 已加载翻译主键
0 数据条目索引总数
0 成功载入文件
- 最近装载时间

数据文件状态、来源与同步日志

展示每个翻译文件从 Hugging Face 官网/镜像的拉取来源与最后写入的时间。

文件名 类型 下载来源 同步时间

开放 API 端点示例说明

本系统向外部微服务或本地自动化脚本开放了基础 API。您可以直接调用以下接口进行数据查询与匹配替换。

GET /status
系统就绪与数据完整度状态
检测当前内存倒排索引数据库的加载情况,以及各语言包中未翻译/缺失(NULL)字段的完整度统计信息。
响应示例 (JSON)
{
  "status": 200,
  "msg": "成功",
  "data": {
    "status": "ready",
    "lua_version": 1.2,
    "total_keys": 60501,
    "total_entries": 676697,
    "data_integrity_issues": {
      "zh-Hant": 651,
      "zh-Hans": 56,
      "en-US": 1220
    }
  }
}
GET /download/status
数据库下载与解析进度
只读取当前后端任务状态,返回下载来源、字节进度、解析阶段和数据包完整度检查状态;不会启动下载。
POST /search
全局多语言全文搜索
通过传入的字符串内容,对所有语种进行精确或模糊段落匹配,返回包含该词条的多语言对照翻译数据。支持传入 limit 参数(选填,默认5,最大100)指定返回词条的最大数量。
请求体 (JSON)
{
  "text": "怀着无可言说的幽暗秘密"
}
* 可选参数:"limit": 整数(默认 5,最大值 100,指定返回的最大词条数)
响应示例 (JSON)
{
  "status": 200,
  "msg": "请求成功",
  "data": [
    {
      "key": "voice_ch_char_Fuluo_vo_gain_01",
      "translations": {
        "zh-Hans": "芙罗拉,与您一样,怀着无可言说的幽暗秘密,与您一样,是个漂泊之人。很高兴,我们现在已经充分了解了彼此。",
        "en-US": "I'm Flora. It seems we share much in common: unspoken secrets, and a heart drifting without anchor. I trust we now understand each other well enough.",
        "zh-Hant": "芙羅拉,與您一樣,懷著無可言說的幽暗秘密,與您一樣,是個漂泊之人。很高興,我們現在已經充分了解了彼此。"
      }
    }
  ]
}
POST /match
智能匹配提取与翻译替换
实现长文本的分词、冒号角色前缀剥离与段落 difflib 模糊比对,把内含的待翻译占位块(支持任何夹杂长句)自动翻译并整体输出。
请求体 (JSON)
{
  "text": "Flora: I'm Flora. It seems we share much in common: unspoken secrets, and a heart drifting without anchor. I trust we now understand each other well enough.",
  "target_lang": "zh-Hans"
}
响应示例 (JSON)
{
  "status": 200,
  "msg": "请求成功",
  "data": {
    "original": "Flora: I'm Flora. It seems we share much in common: unspoken secrets, and a heart drifting without anchor. I trust we now understand each other well enough.",
    "result_text": "Flora: 芙罗拉,与您一样,怀着无可言说的幽暗秘密,与您一样,是个漂泊之人。很高兴,我们现在已经充分了解了彼此。",
    "replacements": [
      {
        "original": "I'm Flora. It seems we share much in common: unspoken secrets, and a heart drifting without anchor. I trust we now understand each other well enough.",
        "normalized": "imfloraitseemswesharemuchincommonunspokensecretsandaheartdriftingwithoutanchoritrustwenowunderstandeachotherwellenough",
        "replaced": "芙罗拉,与您一样,怀着无可言说的幽暗秘密,与您一样,是个漂泊之人。很高兴,我们现在已经充分了解了彼此。",
        "key": "voice_ch_char_Fuluo_vo_gain_01",
        "source_lang": "en-US"
      }
    ]
  }
}
GET /get/key
按键名精确查询
根据具体的语言键值名精确调取所有语种的翻译详情。
URL 查询参数
?key=voice_ch_char_Fuluo_vo_gain_01
响应示例 (JSON)
{
  "status": 200,
  "msg": "请求成功",
  "data": {
    "key": "voice_ch_char_Fuluo_vo_gain_01",
    "translations": {
      "zh-Hans": "芙罗拉,与您一样,怀着无可言说的幽暗秘密,与您一样,是个漂泊之人。很高兴,我们现在已经充分了解了彼此。",
      "zh-Hant": "芙羅拉,與您一樣,懷著無可言說的幽暗秘密,與您一樣,是個漂泊之人。很高興,我們現在已經充分了解了彼此。",
      "en-US": "I'm Flora. It seems we share much in common: unspoken secrets, and a heart drifting without anchor. I trust we now understand each other well enough."
    }
  }
}
GET /export
大 JSON 数据库安全导出
导出后端当前已有的合并数据库 JSON 文件,直接以下载流形式返回;不会触发 Hugging Face 下载。

客户端开发调用示例

Python 批量匹配调用脚本
import urllib.request
import json

url = "https://dnai18n.072100000.xyz/match"
data = {
    "text": "Flora: I'm Flora. It seems we share much in common: unspoken secrets, and a heart drifting without anchor. I trust we now understand each other well enough.",
    "target_lang": "zh-Hans"
}
req = urllib.request.Request(
    url, 
    data=json.dumps(data).encode("utf-8"),
    headers={"Content-Type": "application/json"},
    method="POST"
)
with urllib.request.urlopen(req) as resp:
    result = json.loads(resp.read().decode("utf-8"))
    print("翻译结果:", result["data"]["result_text"])
cURL 命令行请求
curl -X POST "https://dnai18n.072100000.xyz/match" \
  -H "Content-Type: application/json" \
  -d '{"text": "芙罗拉,与您一样,怀着无可言说的幽暗秘密,与您一样,是个漂泊之人。很高兴,我们现在已经充分了解了彼此。", "target_lang": "en-US"}'