This is a migrated thread and some comments may be shown as answers.

Set global culture

1 Answer 460 Views
This is a migrated thread and some comments may be shown as answers.
Marius
Top achievements
Rank 1
Marius asked on 31 Oct 2018, 11:08 AM

How do you set another culture to be the default?

Trying to set Norwegian as the default  the currency format is correct in Grid

1 Answer, 1 is accepted

Sort by
0
Accepted
Nencho
Telerik team
answered on 02 Nov 2018, 11:45 AM
Hello Marius,

We are on the verge of releasing a new documentation article about Globalization and Localization. They will be shortly and available in the links below:

https://www.telerik.com/kendo-vue-ui/components/globalization/

https://www.telerik.com/kendo-vue-ui/components/localization/

Generally, what you need to do is import the needed culture package and use it in your application:
import $ from 'jquery';
 
import '@progress/kendo-ui'
import '@progress/kendo-theme-default/dist/all.css'
 
import '@progress/kendo-ui/js/cultures/kendo.culture.de-DE.js'
 
.............
kendo.culture("de-DE");
 
Vue.use(DateinputsInstaller);
 
new Vue({
   el: '#vueapp'
})

Hope this would help.

Regards,
Nencho
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Christophe
Top achievements
Rank 1
commented on 08 Sep 2022, 08:36 AM

Hi, I would like re-open this question ^^.

Is this solution  still the good way to solve this problem with native component ?

I try to change the culture of the grid like Marius, but I don't understand how to do this without jQuery...

This example doesn't work -_-

https://www.telerik.com/kendo-vue-ui/components/grid/globalization/

The the format number don't work ... The number disappear...

So what is the good way ?

Petar
Telerik team
commented on 12 Sep 2022, 08:27 AM

Hi, Christophe.

The way we can set the Globalization/Localization functionality of the native and Wrapper Grid is different. A good example of how we can change the languages and data formatting in the Native Grid is our overview demo. In it, you can see how we can switch between three English, French, and Spanish languages/culture. 

More details about how Globalization and Localization work in the Kendo UI for Vue Native suite, you can find on the previous links. 

Last but not least, thank you for the reported issue with the Kendo UI for Vue Globalization demo. Using the approach from the overview demo shared above, we will add computed properties for the different column headers and the messages will be updated based on the selected language.

Please check the above links and let me know if they help you achieve what you need in your application. If you need furhter assistance with the implementation of the Globzalitaion/Localization functionality in the Native Grid or other Native Vue components, you can submit a support ticket or continue the current discussion.  

Asked by
Marius
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Share this question
or