Skip to content

How to use LocaleProvider in vuejs with typecript project? #1065

@frankcb298

Description

@frankcb298
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.3.10

Environment

Chrome

Reproduction link

https://github.com/vueComponent/ant-design-vue

Steps to reproduce

My project is using Vuejs typescript ant-design-vue.
I want to use LocaleProvider to localize the UI controls follow this https://vue.ant.design/components/locale-provider/

What is expected?

How to use LocaleProvider in ant-design-vue with typecript?

What is actually happening?

When i use this component: a-locale-provider. This show below error:
[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions