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
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:
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!
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:
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.