提交 144fb845 authored 作者: taojinlong's avatar taojinlong

fix: 国际化

上级 36d5a801
......@@ -36,7 +36,6 @@ public class Translator {
* 单Key翻译
*/
public static String get(String key) {
System.out.println(LocaleContextHolder.getLocale());
return messageSource.getMessage(key, null, key, LocaleContextHolder.getLocale());
}
......
......@@ -26,7 +26,7 @@
</div>
</el-row>
<el-row class="root-class">
<el-button @click="cancel()">{{ $t('commons.cancle')}}</el-button>
<el-button @click="cancel()">{{ $t('commons.cancel')}}</el-button>
<el-button type="primary" @click="save()">{{ $t('commons.save')}}</el-button>
</el-row>
</el-row>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论