# 国际化

Element UI SaaS 扩展内部默认使用中文,若希望使用其他语言,则需要进行多语言设置。

import Vue from "vue";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import locale from "element-ui/lib/locale/lang/en.js";
Vue.use(ElementUI, { locale });

import "element-ui-saas-extend/lib/theme-chalk/index.css";
import ElementUISaaSExtend from "element-ui-saas-extend";
import locale from "element-ui-saas-extend/lib/locale/en.js";
Vue.use(ElementUISaaSExtend, { locale });

# CDN 引入

<script src="//unpkg.com/vue"></script>
<script src="//unpkg.com/element-ui"></script>
<script src="//unpkg.com/element-ui-saas-extend"></script>
<script src="//unpkg.com/element-ui/lib/umd/locale/en.js"></script>
<script src="//unpkg.com/element-ui-saas-extend/lib/locale/en.js"></script>

<script>
  ELEMENT.locale(ELEMENT.lang.en);
  ElementUISaaSExtend.locale(ElementUISaaSExtend.lang["zhCN"]);
</script>

# 目前内置了以下语言:

  • 简体中文(zh-CN)
  • 英语(en)