# @eciol/locale

用于国际化配置

## Usage

```vue
<script lang="ts" setup>
  import { useI18n } from '@eciol/locale';

  const { t } = useI18n();
</script>

<template>
  <a>{{ t('layout.footer.onlinePreview') }}</a>
</template>
```

## Export

```ts
/**
 * @description 国际化配置
 */
export { 
  genMessage, // 自动生成多语言对象
  i18n, // i18n实例
  loadLocalePool, // 加载语言池
  setEnLang, // 设置英文语言
  setHtmlPageLang, 
  setLoadLocalePool, 
  setZhCNLang,  // 设置中文语言
  setupI18n, // 初始化I18n
  t, // 转化多语言函数
  useI18n, // VueI18n instance hooks
  useLocale // locale hooks，用于获取或变更语言
};
```
