forked from github/dataease
fix: 国际化
This commit is contained in:
parent
36d5a80190
commit
144fb84535
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user