2026-09-23 21:06:24 +08:00
2026-09-22 18:04:37 +08:00
2026-09-23 20:51:01 +08:00
2026-09-23 20:51:01 +08:00
2026-09-22 18:04:37 +08:00
2026-09-23 20:12:14 +08:00
2026-09-23 21:06:24 +08:00
2026-09-19 18:20:31 +08:00
2026-09-23 20:12:14 +08:00
2026-09-19 18:20:31 +08:00
2026-09-23 20:51:01 +08:00

NoN 中文翻译工作区(和多版本翻译整合工具)

目前我们开了三个翻译版本:

zh_cn_sfw

这是准备交付到 mod jar 层的内容,不应包含任何色情词汇。

  • todo:就“中庭锁”、“性压抑”等词语,寻找更加SFW的版本。

zh_cn_nsfw

这是准备交付到 NoN default pack 默认动画包中内嵌的版本,其应该覆盖掉 zh_cn_sfw 中那些不色情的词汇

  • todo:就“性压抑”等词语寻找更准确的翻译。

zh_cn_nsfw_meme

这是对 LongCha 翻译的保留,将单独打成 zh_cn_meme 的空动画包(应用此包将覆盖 zh_cn_nsfw 的部分进度描述以提高节目效果)

  • 为什么不使用资源包?由于 mod 的逻辑,动画包优先级高于资源包,导致资源包不可能覆盖动画包的内容。

翻译工具

make.ts 将多个跨版本的 lang json 文件合并为一个,并且按照顺序排列好,使得相同的字串排列在相邻的位置。

  • 还能找出相同的字符串并删掉覆盖层的内容,从而减少额外的行。
  • 同时,还会自动排序为官方 lang 文件顺序。

使用方法

  1. 打开 make.ts,编辑 targetLangFiles and the workFile 两项
  2. 执行 make.ts(或者是 ts-node make.ts / deno make.ts),合并的语言文件会被输出到 workFile 变量的位置。
  3. 编辑输出的合并版文件
  4. 再次执行,脚本会根据时间戳决定改为将文件拆回去
  5. 如果你不想覆盖某个特定的文件,给对应项加上 ro: true
  6. 如果你不想自动合并重复行,加上环境变量 KEEP_SAME_OVERRIDE_LINES

Translation Utility

make.ts merges multiple language files into one for easy editing, then splits them back into separate files. This tool lets you:

  • find the original text without searching another file
  • automatically remove duplicate text to save space
  • sort your i18n files according to the official order

Usage

  1. Open make.ts and edit the targetLangFiles and the workFile fields, change zh_cn to your language. please notice that The suffix and file values must be unique.
  2. Run ./make.ts (or ts-node make.ts / deno make.ts). The language files will be merged into the workFile location (e.g. zh_cn.json).
  3. Edit the output file.
  4. Run ./make.ts again. If the workfile is newer than the other files, the script will write the changes back to the language files (at the locations specified by targetLangFiles).
  5. If you don't want a language to be written back, add ro: true to its entry in targetLangFiles.
  6. use env KEEP_SAME_OVERRIDE_LINES to avoid remove same line in override layer.
S
Description
SFW and NSFW lang files
Readme
4.5 MiB
2026-10-01 03:39:49 -05:00