

包括设置 RegexForFullTextNeedToTranslate、RegexForEachLineNeedToTranslate 和 PresetTranslations 都可以显著减少不必要的翻译。见详细说明。
Setting RegexForFullTextNeedToTranslate, RegexForEachLineNeedToTranslate, and PresetTranslations can significantly reduce unnecessary translations. Please refer to detailed description.
TranslationAPI
选择使用的翻译 API。支持腾讯翻译 api、百度翻译 api 和 Microsoft Azure 翻译 api。截止 2025.1.29,三者的免费额度为 Tencent 500万字符/月、Baidu 100万字符/月、Azure 200万字符/月。详见官方说明。
ToggleTranslationKeyBinding
启用或关闭翻译的按键。
FilterForFullTextNeedToTranslate
对整个文本生效。用来筛选待翻译的文本以节省翻译额度。
RegexForFullTextNeedToTranslate
正则表达式,一个多行文本若匹配为真,则这个多行文本保留以待翻译。只在 FilterForFullTextNeedToTranslate 为 CustomRegex 时生效。样例 RegexForFullTextNeedToTranslate 正则表达式: ^(?!Enter the Gungeon).*$
FilterForEachLineNeedToTranslate
对文本的每一行生效。用来筛选待翻译的文本以节省翻译额度。
RegexForEachLineNeedToTranslate
正则表达式,多行文本若存在一行匹配,整个多行文本保留以待翻译。只在 FilterForEachLineNeedToTranslate 为 CustomRegex 时生效。样例 RegexForEachLineNeedToTranslate 正则表达式(适配中文): ^(?![@#])(?=\S)(?!^[\d\p{P}]+$)(?!.*[\u4e00-\u9fa5\u3000-\u303F\uFF00-\uFFEF]).*$
FilterForIgnoredSubstringWithinText
用来过滤文本中需要忽略的子文本。这通常包括一些要特殊处理的贴图和转义符。
RegexForIgnoredSubstringWithinText
正则表达式,匹配文本中需要忽略的子文本。请使用非捕获组。只在 FilterForIgnoredSubstringWithinText 为 CustomRegex 时生效。样例 RegexForIgnoredSubstringWithinText 正则表达式(适配中文): (?:\[color\s+[^\]]+\])|(?:\[sprite\s+[^\]]+\])|(?:\[/color\])|(?:\{[^}]*\})|(?:\^[\w\d]{9})|(?:[\u4e00-\u9fa5\u3000-\u303F\uFF00-\uFFEF]+)|(?:<color=[^>]+>)|(?:</color>)|(?:^\s*[\d\p{P}]+\s*$)|(?:[<>\[\]])|(?:@[a-fA-F0-9]{6})
MaxBatchCharacterCount
处理的批量数据最大字符数。若翻译api提示单次请求过长,请减小此值。
MaxBatchTextCount
处理的批量数据最大项数。为0表示不限制。
MaxRetryCount
发生错误时的最大重试次数。
RetryInterval
发生错误时的重试时间间隔。
TranslationCacheCapacity
最大翻译缓存容量。
PresetTranslations
预设翻译的文件名。使用预设翻译以减少加载时常见文本的翻译请求,留空表示不使用。预设翻译为位于 dll 同目录下的 JSON 文件。用“;”分割,文件会按顺序先后加载。
CachedTranslations
缓存翻译的文件名。缓存翻译为位于 dll 同目录下的 JSON 文件。
AutoSaveCachedTranslationsUponQuit
是否在退出时自动保存缓存翻译。强制退出时不会生效。
LogRequestedTexts
是否在日志中显示请求翻译的文本。
TranslateTextFromDfLabel
翻译 DfLabel 中的文本。
TranslateTextFromDfButton
翻译 DfButton 中的文本。
TranslateTextFromTk2dTextMesh
翻译 Tk2dTextMesh 中的文本。
OverridedFont
用来覆盖游戏字体的字体。根据你需要的目标语言选择。
FontAssetBundleName
包含自定义字体的 AssetBundle 名称。位于 dll 同目录下。
CustomizedDfFontName
要使用的自定义 df 字体。请把它包含于 FontAssetBundle。提醒:使用dfDynamicFont会造成游戏崩溃,请使用dfFont代替。
CustomizedTk2dFontName
要使用的自定义 tk2d 字体。请把它包含于 FontAssetBundle。
OverrideDfTokenizer
覆盖的 Df 分词器。Token 可以用于处理文本的自动换行位置。如每个字换行还是单词后换行。
RegexForDfTokenizer
用于 Df 生成 token 的正则表达式。换行只能出现在它的后方。只在 OverrideDfTokenizer 为 CustomRegex 时生效。样例 RegexForDfTokenizer 正则表达式: [a-zA-Z0-9]+|.
DfTextScaleExpandThreshold
低于这个值的 Df TextScale 会被扩大。为负表示不生效。
DfTextScaleExpandToValue
低于门槛的 Df TextScale 被扩大到多少。
ShowRequestedCharacterCount
显示已翻译字符数。
RequestedCharacterCountAlertThreshold
已请求翻译字符数警报阈值。当翻译请求即将超出时,会暂停翻译。为零表示不设阈值。
ToggleRequestedCharacterCountKeyBinding
开启或关闭已翻译字符数的显示的按键。
CountLabelAnchor
用空格或逗号分隔的一个二维向量,决定计数标签相对于父级的锚点位置。左上角为0 0,右下角是1 1。
CountLabelPivot
用空格或逗号分隔的一个二维向量,定义计数标签的定位基准点。左上角为0 0,右下角是1 1。
TranslateTextsOfItemTipsMod
翻译 ItemTipsMod 中的文本。
OverrideItemTipsTokenizer
覆盖的 ItemTips 分词器。Token 可以用于处理文本的自动换行位置。如每个字换行还是单词后换行。
RegexForItemTipsModTokenizer
用于 ItemTips 生成 token 的正则表达式。只在 OverrideItemTipsTokenizer 为 CustomRegex 时生效。样例 RegexForItemTipsModTokenizer 正则表达式: (?:<color=[^>]+?>|</color>|[a-zA-Z0-9]+|\s+|.)
ItemTipsFontScale
ItemTips的字体缩放大小。
ItemTipsBackgroundWidthScale
ItemTips的背景宽度缩放大小。
ItemTipsLineHeightScale
ItemTips的行高缩放大小。
ItemTipsAnchor
用空格或逗号分隔的一个二维向量,决定ItemTips相对于父级的锚点位置。左上角为0 0,右下角是1 1。
ItemTipsPivot
用空格或逗号分隔的一个二维向量,定义ItemTips的定位基准点。左上角为0 0,右下角是1 1。
ItemTipsSourceBitmapFontBaseLine
ItemTips的字体如果由位图字体生成,可以在此控制位图字体的基准线。
TranslationAPI
Select the translation API to use. Supported APIs include Tencent Translation API, Baidu Translation API, and Microsoft Azure Translation API. As of January 29, 2025, the free quotas are: Tencent 5 million characters/month, Baidu 1 million characters/month, Azure 2 million characters/month. Please refer to the official documentation for more details.
ToggleTranslationKeyBinding
The key binding of toggling translation.
FilterForFullTextNeedToTranslate
Effective for the full text. Used to filter the text to be translated to save translation quotas.
RegexForFullTextNeedToTranslate
Regular expression, if a multiple line text matches true, then this multiple line text is retained for translation. Only effective when FilterForFullTextNeedToTranslate is set to CustomRegex. Example RegexForFullTextNeedToTranslate regex: ^(?!Enter the Gungeon).*$
FilterForEachLineNeedToTranslate
Effective for each line of text. Used to filter the text to be translated to save translation quotas.
RegexForEachLineNeedToTranslate
Regular expression, if there is a matching line in multiple lines of text, the entire multiple lines of text are retained for translation. Only effective when FilterForEachLineNeedToTranslate is set to CustomRegex. Example RegexForEachLineNeedToTranslate regex (fit for Chinese): ^(?![@#])(?=\S)(?!^[\d\p{P}]+$)(?!.*[\u4e00-\u9fa5\u3000-\u303F\uFF00-\uFFEF]).*$
FilterForIgnoredSubstringWithinText
Used to filter sub texts that need to be ignored in the text. This usually includes some textures and escape characters that require special handling.
RegexForIgnoredSubstringWithinText
Regular expression, matching sub texts that need to be ignored in the text. Please use non capture groups. Only effective when FilterForIgnoredSubstringWithinText is set to CustomRegex. Example RegexForIgnoredSubstringWithinText regex (fit for Chinese): (?:\[color\s+[^\]]+\])|(?:\[sprite\s+[^\]]+\])|(?:\[/color\])|(?:\{[^}]*\})|(?:\^[\w\d]{9})|(?:[\u4e00-\u9fa5\u3000-\u303F\uFF00-\uFFEF]+)|(?:<color=[^>]+>)|(?:</color>)|(?:^\s*[\d\p{P}]+\s*$)|(?:[<>\[\]])|(?:@[a-fA-F0-9]{6})
MaxBatchCharacterCount
The maximum count of batch data characters for processing. If the translation API prompts that a single request is too long, please reduce this value.
MaxBatchTextCount
The maximum count of batch data texts for processing. A value of 0 indicates no restriction.
MaxRetryCount
The maximum number of retry attempts when an error occurs during a translation request.
RetryInterval
The interval of retries when an error occurs.
TranslationCacheCapacity
The maximum cache size for storing translations.
PresetTranslations
The file name for preset translations. Use preset translation to reduce translation requests for common text during loading, leaving blank to indicate not using. The preset translation is a JSON file located in the same directory as the DLL. Separated by ';', files will be loaded sequentially.
CachedTranslations
The file name cached translations. The preset translation is a JSON file located in the same directory as the DLL.
AutoSaveCachedTranslationsUponQuit
Whether to automatically save cached translations upon quit. It will not take effect when quiting abnormally.
LogRequestedTexts
Whether to log the text requested for translation.
TranslateTextFromDfLabel
Translate the text in DfLabel.
TranslateTextFromDfButton
Translate the text in DfButton.
TranslateTextFromTk2dTextMesh
Translate the text in Tk2dTextMesh.
OverridedFont
Font used to override the font of the game. Choose according to the target language you need.
FontAssetBundleName
The name of the AssetBundle containing customized fonts. Located in the same directory as the DLL.
CustomizedDfFontName
The name of the customized DF font to use. Include it within the FontAssetBundle. Reminder: Using dfDynamicFont may cause the game to crash, please use dfFont instead.
CustomizedTk2dFontName
The name of the customized tk2d font to use. Include it within the FontAssetBundle.
OverrideDfTokenizer
Override Df tokenizer. Token is used to handle the automatic line break position of text. Whether to wrap each word or to wrap after each word.
RegexForDfTokenizer
A regular expression used for generating tokens for Df. Only effective when OverrideDfTokenizer is set to CustomRegex. Example RegexForDfTokenizer regex: [a-zA-Z0-9]+|.
DfTextScaleExpandThreshold
Df TextScale below this value will be expanded. Negative indicates non effectiveness.
DfTextScaleExpandToValue
How much is the Df TextScale below the threshold expanded to.
ShowRequestedCharacterCount
Show requested character count.
RequestedCharacterCountAlertThreshold
The alert threshold of the count of characters requested for translation. When this count is about to exceed, translation will be paused.
ToggleRequestedCharacterCountKeyBinding
The key binding of toggling the display of requested character count.
CountLabelAnchor
A two-dimensional vector separated by spaces or commas, which determines where the count label is anchored relative to its parent. The top left corner is 0 0, and the bottom right corner is 1 1.
CountLabelPivot
A two-dimensional vector separated by spaces or commas, which defines the pivot point of the count label for positioning. The top left corner is 0 0, and the bottom right corner is 1 1.
TranslateTextsOfItemTipsMod
Translate the text within the ItemTipsMod.
OverrideItemTipsTokenizer
Override ItemTips tokenizer. Token is used to handle the automatic line break position of text. Whether to wrap each word or to wrap after each word.
RegexForItemTipsModTokenizer
A regular expression used for generating tokens for ItemTips. Only effective when OverrideItemTipsTokenizer is set to CustomRegex. Example RegexForItemTipsModTokenizer regex: (?:<color=[^>]+?>|</color>|[a-zA-Z0-9]+|\s+|.)
ItemTipsFontScale
The font scale of ItemTips.
ItemTipsBackgroundWidthScale
The width scale of ItemTips background.
ItemTipsLineHeightScale
The width scale of ItemTips line height.
ItemTipsAnchor
A two-dimensional vector separated by spaces or commas, which determines where ItemTips is anchored relative to its parent. The top left corner is 0 0, and the bottom right corner is 1 1.
ItemTipsPivot
A two-dimensional vector separated by spaces or commas, which defines the pivot point of ItemTips for positioning. The top left corner is 0 0, and the bottom right corner is 1 1.
ItemTipsSourceBitmapFontBaseLine
If the font used by ItemTips is generated from a bitmap font, you can adjust the baseline of the bitmap font here.
若默认字体不支持所需语言的字符,可以使用自定义字体。详见GitHub页面。
If the default font does not support the characters required for a specific language, you can use a custom font. For more details, please refer to the GitHub page.