Localization: Overview

RadCalendar uses the default locale of the operating system it is run on. If you want to explicitly change the locale of the component, you can do so by using the locale property. The locale property accepts string values representing language tags as per the BCP-27 standard.

Defining Locales on RadCalendar

The following snippet demonstrates how a locale can be set in the Vue instance:

export default {
  template: `
  <Page>
    <GridLayout
      orientation="vertical" rows="*, auto">
      <RadCalendar ref="calendar" :locale="locale"></RadCalendar>
      <StackLayout orientation="horizontal" row="1">
        <Button text="en-EN" @tap="changeLocale('en-EN')"></Button>
        <Button text="es-ES" @tap="changeLocale('es-ES')"></Button>
        <Button text="ru-RU" @tap="changeLocale('ru-RU')"></Button>
        <Button text="fr-FR" @tap="changeLocale('fr-FR')"></Button>
      </StackLayout>
    </GridLayout>
  </Page>
  `,
  data () {
    return {
      locale: 'en-EN',
    };
  },
  methods: {
    changeLocale(locale: String) {
      this.locale = locale;
    },
  }
};

The following two screenshots demonstrate how RadCalendar looks like when a ru-RU is defined as a locale:

RadCalendar: Localization on Android RadCalendar: Localization on iOS