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

更新链接为 Metadata 中的常量,优化代码可维护性 #3674

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zkitefly
Copy link
Member

No description provided.

@@ -53,9 +54,19 @@ public static String getName(SupportedLocale locale) {
return locale == Locales.DEFAULT ? resourceBundle.getString("lang.default") : locale.getResourceBundle().getString("lang");
}

private static String replaceURLs(String text) {
Copy link
Member

@Glavo Glavo Mar 8, 2025

Choose a reason for hiding this comment

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

我不喜欢这样修改,我觉得保留 i18n 中的 URL 没问题,或者可以考虑把那些使用 URL 的地方改成插值,在使用处一处处改,而不是直接动 I18N 这个逻辑。

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.

2 participants