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

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>--

ConfigProvider Slots

NameDescription
customize default content