To avoid unnecessary duplicate document content, some of the documents in this library are linked to the content in
i18n-pro
Thei18n-pro
related link in the current document is based on the2.1.0
version. If you are using a different version, you need to check the document corresponding to the version you are using to avoid inconsistent usage
Table of Contents
Initialize internationalization
( props: I18nState, ) => voidThe parameters are consistent with the initI18n parameter
Get internationalization text,Consistent with t
Note: Since t
is a reactive state, you need to use it like $t
when using it in tags
The current state of internationalization,The type is I18nState
Note: Since i18nState
is a reactive state, you need to use it like $i18nState
when using it in tags
Set language or language package,Consistent with setI18n