You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/locale-provider/demo/basic.md

576 B

#### 国际化 用 `LocaleProvider` 包裹你的应用,并引用对应的语言包。 #### Localization Wrap your app with `LocaleProvider`, and apply the corresponding language package.
<template>
  <a-locale-provider :locale="enUS">
    <a-pagination :defaultCurrent="1" :total="50" showSizeChanger />
  </a-locale-provider>
</template>
<script>
// you should use import enUS from 'antd/lib/locale-provider/en_US';
import enUS from 'antd/locale-provider/en_US';
export default {
  data(){
    return {
      enUS,
    }
  }
}
</script>