Use internationalization or localization in vue.

1 Answer 39 Views
Grid Localization
n/a
Top achievements
Rank 1
Iron
n/a asked on 13 Nov 2023, 06:44 AM | edited on 13 Nov 2023, 06:46 AM
Is there any way to localize components in vue? I found that localization does not translate all text。Can you provide a case study or refer to the corresponding documentation?

1 Answer, 1 is accepted

Sort by
0
Accepted
Vessy
Telerik team
answered on 14 Nov 2023, 03:15 PM

Hi, Qiushen,

The Kendo UI for Vue Native Localization package enables you to adapt a component to a different locale by providing options for translating its messages. The package provides a `loadMessage` function that can be used in order to  load messages for specific languages. The following example demonstrates how to customise the localization messages of the Grid:

All messages specific to the Grid can be found here, but you will need to also localize the messages of the nested in the Grid NumericTextBox, DateInput, Calendar and DatePicker components. A full example containing the customized localization of all messages used inside the Grid can be found here:

I hope the provided information will be helpful for you but do let me know in case I can assist you any further on this matter.

Regards,
Vessy
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources

n/a
Top achievements
Rank 1
Iron
commented on 19 Nov 2023, 05:27 PM

Hi, Vessy,

Thank you for your answer. I tried to imitate the code in the case, but there are still some parts that have not been translated. I am very confused about this and hope to get an answer. Thank you! 

https://stackblitz.com/edit/dx53ge-vusaeg?file=src%2Fmain.vue

If there is a problem with the above link, you can check the attachment

Vessy
Telerik team
commented on 21 Nov 2023, 06:43 PM

Hi, Queshen,

Thanks a lot for the provided sample. Indeed there seems to be some localization strings that are missing from the linked article, I have updated your sample with them so you can use them directly:

n/a
Top achievements
Rank 1
Iron
commented on 22 Nov 2023, 05:44 AM

Hi, Vessy

Thank you very much for your case; it has been incredibly helpful to me! Is there a separate document or link available to review these localization strings for possible future modifications?

Vessy
Telerik team
commented on 24 Nov 2023, 05:02 PM

You are more than welcome, Qiushen :)

We try to update the localization messages in the Globalization article of each component regularly, but do let us know if we missed something (like the strings above) and we will take care as soon as possible.

Tags
Grid Localization
Asked by
n/a
Top achievements
Rank 1
Iron
Answers by
Vessy
Telerik team
Share this question
or