class I18nController {

    @Autowired
    private AppService appService;

    @GetMapping("/{lang}")
    @Operation(summary = "Query total i 18 n internationalized text resources", description = "查询总的i18n国际化文本资源")
    public ResponseEntity<Message<Map<String, String>>> queryI18n(
            @Parameter(description = "en: language type,zh: 语言类型", example = "zh-CN")
            @PathVariable(name = "lang", required = false) String lang) {<FILL_FUNCTION_BODY>}
}

        if (lang == null || lang.isEmpty()) {
            lang = "zh-CN";
        }
        lang = "zh-cn".equalsIgnoreCase(lang) || "zh_cn".equalsIgnoreCase(lang) ? "zh-CN" : lang;
        lang = "en-us".equalsIgnoreCase(lang) || "en_us".equalsIgnoreCase(lang) ? "en-US" : lang;
        Map<String, String> i18nResource = appService.getI18nResources(lang);
        return ResponseEntity.ok(Message.success(i18nResource));
    
<no_super_class>