Skip to content

useI18n

useI18n 是基础工具函数,提供了国际化方法。

API

I18n Methods

方法名说明参数示例
t获取国际化消息(key)t('key.value');
locale获取当前语言locale.value = 'en';