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
Language | Code |
---|---|
Chinese | zh-cn |
English | en-us |
Other languages are being developed, and contributions are welcome.