Docs
Calendar
Language

Language

Supported languages for calendar

Schedule-X currently supports the following languages. For support of further languages, please open a PR, adding your translations under the folder: packages/translations/src/locales/xx-XX

LanguageCode
Catalanca-ES
Chinese (China)zh-CN
Chinese (Taiwan)zh-TW
Czechcs-CZ
Danishda-DK
Dutchnl-NL
English (UK)en-GB
English (US)en-US
Estonianet-EE
Frenchfr-FR
Germande-DE
Bahasa (ID)id-ID
Italianit-IT
Japaneseja-JP
Koreanko-KR
Kyrgyzky-KG
Lithuanianlt-LT
Macedonianmk-MK
Polishpl-PL
Portuguese (BR)pt-BR
Russianru-RU
Serbian (Latin alphabet)sr-Latn-RS
Serbian (Cyrillic)sr-RS
Slovaksk-SK
Sloveniansl-SI
Spanishes-ES
Swedishsv-SE
Turkishtr-TR
Ukrainianuk-UA
Croatianhr-HR

Customizing the translations

To customize translations, you can use the mergeLocales helper to merge the original translations with your custom translations. This way, you can override the default translations with your own.

Below is an example of how to customize the Week translation for the en-US locale, which could be useful if you configure the number of days shown in a week.

import { translations, mergeLocales } from '@schedule-x/translations'
 
const calendar = createCalendar({
  translations: mergeLocales(
    translations,
    {
      enUS: {
        'Week': '4 days'
      }
    }
  ),
  // ... other config options
})
Last updated on

We use cookies for marketing purposes. By clicking "Accept", you consent to the use of all cookies. If you decline, we will only use functional cookies. You can read more about our cookie policy here.