Skip to content
Last updated

Locale

Overview

A Locale represents a language or regional variation for content in Apiera. Locales enable multi-language product information, allowing you to maintain translated content for different markets.

Basics

Core fields

name — Human-readable label for the locale (e.g., "Norwegian Bokmål", "English (US)").

code — Standard locale code, typically BCP 47 format (e.g., nb-NO, en-US).

isDefault — Marks this locale as the organization's default language.

Default locale

One locale must be marked as default. The default locale has special behavior:

  • When you create or update an entity with localizable fields (e.g., name, description), those values are stored as content for the default locale.
  • If no default locale is configured, content operations will fail.

Changing the default to a different locale doesn't migrate content—existing content entries remain tied to their original locales.

Lifecycle

Locales use activation rather than publishing.

Status values

StatusDescription
draftInitial state, not available for content
activeAvailable for creating localized content
inactiveTemporarily disabled, existing content preserved
removedSoft-deleted, excluded from all operations

Transitions

TransitionValid fromResults in
draftactive, inactive, removeddraft
activatedraft, inactiveactive
deactivateactiveinactive
removedraft, active, inactiveremoved
restoreremovedinactive

Error codes

CodeDescription
LOCALE_NOT_FOUNDLocale does not exist
LOCALE_INVALID_TRANSITIONLifecycle transition not allowed
LOCALE_REMOVEDCannot modify a removed locale
LOCALE_NAME_REQUIREDName field is required
LOCALE_NAME_EMPTYName cannot be empty
LOCALE_CODE_REQUIREDCode field is required
LOCALE_CODE_EMPTYCode cannot be empty