You are reading the documentation for an outdated Corteza release. 2023.9 is the latest stable Corteza release.


Corteza allows you to fully translate most aspect of the system. From the user interface to custom Low Code configurations such as modules and their fields.

Additionally, Corteza adjusts value formatting based on the locale, such as custom temporal and numerical strings. Value formatting uses the native ECMAScript internationalization API.

Structure overview


The corteza-js/src/formatting/datetime.ts file defines the functions which should be used when localizing temporal values such as dates and timestamps.

The current implementation defines three functions which should be used for different applications.

  • fullDateTime: outputs locally formatted date and time, no seconds.

  • date: outputs locally formatted date without time.

  • time: outputs locally formatted time.


The corteza-js/src/formatting/number.ts file defines the functions which should be used when localizing numeric values.


Example use case:
import { fmt } from '@cortezaproject/corteza-js'

// ...

fmt.fullDateTime(sampleDate, optionalDateTimeFormat), optionalDateTimeFormat)
fmt.time(sampleTime, optionalDateTimeFormat)

If you wish to test the output for different locales, you will need to change the locale in your browser settings. Corteza will respond to the change and use the newly assigned locale.

Modify formatting

To modify the default formatting, pass in the Intl.DateTimeFormat object as the last argument to the function call.

An example of overwriting the default format:
fmt.fullDateTime(sampleDate, {
  day: "numeric",
  month: "numeric",
  year: "numeric",
  hour: "numeric",
  minute: "numeric",

Refer to the Intl.DateTimeFormat documentation for details.

Custom format reference

  • full

  • long

  • medium

  • short

  • full

  • long

  • medium

  • short

  • numeric (example output: 2012)

  • 2-digit (example output: 12)

  • numeric (example output: 2)

  • 2-digit (example output: 02)

  • long (example output: March)

  • short (example output: Mar)

  • narrow (example output: M)

  • numeric (example output: 1)

  • 2-digit (example output: 01)

  • numeric

  • 2-digit

  • numeric

  • 2-digit

RTL Support

Corteza provides right to left support with the following languages:

  • Arabic

  • Hebrew

  • Pashto

  • Persian

  • Urdu

  • Sindhi