{
  "id": "G03",
  "slug": "unity-smart-string-simple-placeholder-lock",
  "group": "games",
  "title": "DeepSeek V4.1 Flash 实测：Unity 字符串翻译：简单变量校验，复杂语法保留待引擎审核",
  "query": "Unity Smart String AI 占位符 保留",
  "goal": "翻译两个简单Smart String，把嵌套表达式列为引擎复核项；不把简单正则说成完整解析器。",
  "input": {
    "sample_notice": "虚构业务样本；实际调用 apizt API。不是商店、客户或游戏生产数据。",
    "records": [
      {
        "id": "U1",
        "text": "欢迎，{playerName}！",
        "scope": "simple"
      },
      {
        "id": "U2",
        "text": "获得 {0} 枚金币",
        "scope": "simple"
      },
      {
        "id": "U3",
        "text": "{count:plural:一件|{}件}",
        "scope": "engine_review"
      }
    ],
    "knowledge": [],
    "rules": {
      "tokens": {
        "U1": [
          "{playerName}"
        ],
        "U2": [
          "{0}"
        ]
      }
    }
  },
  "instruction": "输出id、target（英文）、status（translated/engine_review）、source_ids。U1/U2保留全部占位符原字节；U3不得翻译，target原样返回并status=engine_review。仅支持没有formatter的简单token子集。 source_ids只能选这些来源ID：U1,U2,U3；不能用resource、字段名或虚构的编号。",
  "columns": [
    "id",
    "target",
    "status",
    "source_ids"
  ],
  "expected": [
    {
      "id": "U1",
      "status": "translated"
    },
    {
      "id": "U2",
      "status": "translated"
    },
    {
      "id": "U3",
      "status": "engine_review",
      "target": "{count:plural:一件|{}件}"
    }
  ],
  "steps": [
    "先按本例标记simple与engine_review。这是显式样本标记，不是完整SmartFormat解析器；复杂项也随记录发送，但要求原样返回，响应后再校验。",
    "对U1/U2抽取简单token做多重集合对比；保留{playerName}和{0}。",
    "运行负例，将{playerName}改成{name}应报错。U3留待Unity Localization包和目标语言规则验收，本篇不声称编辑器运行通过。"
  ],
  "trap": "嵌套SmartFormat不能靠一条非贪婪大括号正则完整解析。",
  "sources": [
    {
      "label": "Unity Smart Strings",
      "href": "https://docs.unity3d.com/Packages/com.unity.localization@1.5/manual/Smart/SmartStrings.html"
    },
    {
      "label": "DeepSeek V4.1 Flash 官方模型说明",
      "href": "https://api-docs.deepseek.com/news/news261017/"
    }
  ],
  "base_title": "Unity 字符串翻译：简单变量校验，复杂语法保留待引擎审核",
  "model": "deepseek-v4.1-flash",
  "model_label": "DeepSeek V4.1 Flash",
  "request_options": {
    "thinking": {
      "type": "disabled"
    }
  },
  "omit_temperature": false
}
