Config

Locale

Defines the locales supported and used by the system.


defaultLocale

The system’s default locale.

defaultLocale also serves as the baseline locale for Intor during locale resolution and tooling operations (such as the CLI).

defineIntorConfig({
  defaultLocale: "en",
});

supportedLocales

The list of locales explicitly supported by the system.

defineIntorConfig({
  supportedLocales: ["en", "fr"],
});

fallbackLocales

Defines the locale mapping rules for fallback resolution.
The fallback locale list for each locale is ordered.

Using the string "default" in fallbackLocales represents the locale specified by defaultLocale.

defineIntorConfig({
  fallbackLocales: {
    en: ["de", "fr"], // → ["de", "fr"]
    de: ["default"],  // → defaultLocale
  },
});