Config Provider

Config Provider is used for providing global configurations, which enables your entire application to access these configurations everywhere

Configure i18n related properties via Config Provider, to get language switching feature

button configurations

Config Provider Attributes

AttributeDescriptionTypeAccepted ValuesDefault
localeLocale ObjectObject<Language>languagesEnglish
i18nExternal translator, when this attribute is provided, it will be used at first, and it will fallback to default translator when this method returns nullish valueFunction<(...args: []) => string>--
buttonbutton related configuration, see the following tableButtonGlobalConfig-see the following table

Button Attributes

AttributeDescriptionTypeAccepted ValuesDefault
autoInsertSpaceautomatically insert a space between two chinese charactersboolean-false

ConfigProvider Slots

customize default content