Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[i18n 优化] add SORT_KEYS #1509

Merged
merged 1 commit into from
Aug 21, 2024
Merged

Conversation

SapphireLab
Copy link
Contributor

Note

SORT_KEYS 默认为 False, 默认排序方式修改为: 原有键先排序,缺失部分放在最后,以方便批量处理缺失值;
SORT_KEYS 设置为 True 时,会在写入文件时默认全局排序.

可调整 SORT_KEYS 对文件按需排序.

@RVC-Boss RVC-Boss merged commit a7e38f9 into RVC-Boss:main Aug 21, 2024
@SapphireLab SapphireLab deleted the update_i18n branch August 21, 2024 15:26
XXXXRT666 pushed a commit to XXXXRT666/GPT-SoVITS that referenced this pull request Oct 17, 2024
@@ -9,6 +9,7 @@
TITLE_LEN : int = 60 # 标题显示长度
KEY_LEN : int = 30 # 键名显示长度
SHOW_KEYS : bool = False # 是否显示键信息
SORT_KEYS : bool = False # 是否按全局键名写入文件

def extract_i18n_strings(node):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CHANGELOG.md

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bnb1yhe2ty2jjqvxgkhhgpzf9qc6g6en8g2d3yc8ax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants