mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2026-03-13 09:02:05 +08:00
Support internationalization
This commit is contained in:
@@ -15,4 +15,7 @@ throw new BusinessException("dataSource.sqlAnalysisError");
|
||||
// 直接可以获取国际化翻译的文案
|
||||
I18nUtils.getMessage("dataSource.sqlAnalysisError")
|
||||
```
|
||||
|
||||
### 国际化中文乱码
|
||||
Editor -> File Encodeings -> Defualt encoding for properties files: 改成 utf-8
|
||||
### 编辑国际化文件
|
||||
必须安装插件 `Resource Bundle Editor`,然后点击`messages.properties`,下方有个`Resource Bundle` 就可以编辑了。
|
||||
Reference in New Issue
Block a user