Skip to content

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

Open

Description

@CarmJos

功能简述

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

需求来源

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

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

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

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

Activity

  1. changed the title [-]feat(comment): 以KEY关联的注解。[/-] [+]feat(comment): 以配置文件路径所关联的注解。[/+] on Jan 3, 2025
  2. self-assigned this
    on Jan 3, 2025
  3. changed the title [-]feat(comment): 以配置文件路径所关联的注解。[/-] [+]feat(comment): 以配置文件路径所关联的注解[/+] on Jan 3, 2025
  4. changed the title [-]feat(comment): 以配置文件路径所关联的注解[/-] [+]feat(comment): Support to load comments from external file (i18n).[/+] on Mar 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions