Skip to content

feat(comment): Support to load comments from external file (i18n). #104

Description

@CarmJos

功能简述

通过以配置文件路径(如config.yml下,debug 条目)的方式,读取并加载制定多语言化后注释内容。

需求来源

在开发过程内,可以通过 @HeaderComment@InlineComment 对配置文件条目进行注释。

但注解大多是单语言的,如果要进行多语言注解,难免会造成大量重复内容。

因此,可以考虑通过 @HeaderComment@InlineComment 注释内容的同时,通过配置设定某个配置文件内注解导用的语言文件(如 config-comments-en_US.xxx 实际结构视provider类型),以实现配置文件内注释的的多语言化加载。

同时,若对应条目在语言文件中不存在,则继续采用代码中注释内容。

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status
No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions