Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.79 KB

API_STORE.md

File metadata and controls

39 lines (27 loc) · 1.79 KB

API

To avoid unnecessary duplicate document content, some of the documents in this library are linked to the content in i18n-pro
The i18n-pro related link in the current document is based on the 2.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

  createI18n
    Type
    Parameter Description
  t
  i18nState
  setI18n

createI18n

Initialize internationalization

Type

(
  props: I18nState,
) => void

Parameter Description

The parameters are consistent with the initI18n parameter

t

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

i18nState

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

setI18n

Set language or language package,Consistent with setI18n