Skip to content
On this page

Globalization

The globalization is a system that allows you to change the language of the interface.

Usage

Bailu UI provides a Vue component LuConfigProvider to set the language of the interface.

vue
<template>
  <lu-config-provider :locale="zhCn">
    <app />
  </lu-config-provider>
</template>

<script setup lang="ts">
  import { LuConfigProvider } from 'bailu-ui'

  import zhCn from 'bailu-ui/dist/locale/es/zh-cn.js'
</script>

Supported regional languages

LanguageCode
Chinesezh-cn
Englishen-us

Other languages are being developed, and contributions are welcome.

© 2023 ziyiLike