Skip to content

vue-i18n / general

general

Vue I18n 通用 API

这提供了国际化功能的 API。

变量

变量描述
I18nInjectionKeyuseI18n 的注入键
VERSIONVue I18n 版本

函数

函数描述
createI18n-
useI18n-

接口

接口描述
BaseFormatPropsVue I18n 提供的组件的基础格式属性
CompileError-
ComposerComposers 接口
ComposerAdditionalOptionsuseI18n 的 Composers 额外选项
ComposerCustomComposers 的类型自定义定义
ComposerDateTimeFormatting日期时间格式化函数
ComposerNumberFormatting数字格式化函数
ComposerOptionsComposers 选项
ComposerResolveLocaleMessageTranslation解析本地消息翻译函数
ComposerTranslation本地消息翻译函数
CustomBlock-
DateTimeOptions日期时间选项
DefineDateTimeFormat日期时间格式的类型定义
DefineLocaleMessage本地消息的类型定义
DefineNumberFormat数字格式的类型定义
ExportedGlobalComposer导出的全局 composers 实例
FormattableProps可格式化属性
GeneratedTypeConfig用于使用生成的类型缩小类型的接口。
I18nI18n 实例
I18nAdditionalOptionsI18n 额外选项
I18nPluginOptionsVue I18n 插件选项
MessageContext消息上下文。
NumberOptions数字选项
TranslateOptions翻译选项
TranslationProps翻译组件属性

类型别名

类型别名描述
ComponentI18nScope-
ComposerExtender-
CustomBlocks-
DatetimeFormat日期时间格式组件
DatetimeFormatPropsDatetimeFormat 组件属性
DefaultDateTimeFormatSchema-
DefaultLocaleMessageSchema-
DefaultNumberFormatSchema-
Disposer-
FallbackLocale-
I18nD-
I18nN-
I18nOptionscreateI18n 的 I18n 选项
I18nScopeI18n 范围
I18nT-
IntlDateTimeFormat-
IntlDateTimeFormats-
IntlFormatMatcher-
IntlLocaleMatcher-
IntlNumberFormat-
IntlNumberFormats-
IsEmptyObject-
IsNever-
IsPart-
JsonPaths-
LinkedModifiers-
Locale-
LocaleMessageDictionary-
LocaleMessages-
LocaleMessageType-
LocaleMessageValue-
MessageCompiler消息编译器
MessageCompilerContext将传递给消息编译器的上下文。
MessageFunction消息函数。
MessageFunctions-
MessageResolver-
MissingHandler-
NamedValue-
NumberFormat数字格式组件
NumberFormatPropsNumberFormat 组件属性
Path-
PathValue-
PickupFormatPathKeys-
PickupKeys-
PickupPaths-
PluralizationRule-
PostTranslationHandler-
RemovedIndexResources-
Translation翻译组件
UseI18nOptionsuseI18n 的 I18n 选项
VueI18nInstance-
VueMessageType-