feat(i18n): 新增多语言国际化支持

引入 II18nService 与 I18nServiceImpl,使 AppleService 及全局异常处理器可按 Accept-Language 返回本地化错误信息;ErrorCode 新增 getCodeAsString;数据库连接改为 keyborad_db。
This commit is contained in:
2025-12-01 21:54:51 +08:00
parent 683accca83
commit bcbb623ee4
9 changed files with 261 additions and 45 deletions

View File

@@ -33,5 +33,13 @@ public enum ErrorCode {
this.code = code;
this.message = message;
}
}
/**
* 获取错误码的字符串表示
*
* @return 错误码的字符串表示
*/
public String getCodeAsString() {
return String.valueOf(code);
}
}