interface Locale {
    code: string;
    contentDeliveryApi: boolean;
    contentManagementApi: boolean;
    default: boolean;
    fallbackCode: null | string;
    internal_code: string;
    name: string;
    optional: boolean;
    sys: BasicMetaSysProps & {
        environment: SysLink;
        space: SysLink;
    };
    delete(): Promise<void>;
    toPlainObject(): LocaleProps;
    update(): Promise<Locale>;
}

Hierarchy (view full)

Properties

code: string

Locale code (example: en-us)

contentDeliveryApi: boolean

If the content under this locale should be available on the CDA (for public reading)

contentManagementApi: boolean

If the content under this locale should be available on the CMA (for editing)

default: boolean

If this is the default locale

fallbackCode: null | string

Locale code to fallback to when there is not content for the current locale

internal_code: string

Internal locale code

name: string

Locale name

optional: boolean

If the locale needs to be filled in on entries or not

sys: BasicMetaSysProps & {
    environment: SysLink;
    space: SysLink;
}

Methods

  • Deletes this object on the server.

    Returns Promise<void>

    Promise for the deletion. It contains no data, but the Promise error case should be handled.

  • Sends an update to the server with any changes made to the object's properties

    Returns Promise<Locale>

    Object returned from the server with updated changes.