Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
添加本地化功能:
本地化使用第三方库:WPFLocalizeExtension、XAMLMarkupExtensions
说明:
在项目解决方案下添加I18n目录和Utils目录用于本地化功能,其中使用资源文件作为本地化语言文件,使用资源字典(LanguageList.xaml)作为语言索引,实现了程序运行时动态切换语言功能,切换功能入口:设置->启动器->全局设置(此处位置为原代码注释,后续可调整)
语言默认储存在注册表中,键名为language。
目前仅本地化了简体中文、繁体中文和英语,对标题处进行了本地化,后续多国家/地区的本地化需要社区支持。