fix: 国际化

This commit is contained in:
taojinlong 2021-05-19 10:17:36 +08:00
parent 36d5a80190
commit 144fb84535
2 changed files with 1 additions and 2 deletions

View File

@ -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());
}

View File

@ -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>