Skip to content
HALOWERK

Textwerk

l10n fallback graph resolution

Return a resource value through supplied locale fallbacks.

POST https://text.halowerk.com/v1/l10n-fallback-graph-resolution

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
localestringYes
keystringYes
fallbacksarrayYes
resourcesobjectYes
Show full input schema
{
  "type": "object",
  "properties": {
    "locale": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
    },
    "key": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
    },
    "fallbacks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "locale": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1
          },
          "next": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1
          }
        },
        "required": [
          "locale",
          "next"
        ],
        "additionalProperties": false
      },
      "maxItems": 50,
      "minItems": 0
    },
    "resources": {
      "type": "object",
      "maxProperties": 50,
      "propertyNames": {
        "minLength": 1,
        "maxLength": 80
      },
      "additionalProperties": {
        "type": "object",
        "maxProperties": 100,
        "propertyNames": {
          "minLength": 1,
          "maxLength": 80
        },
        "additionalProperties": {
          "type": "string",
          "maxLength": 2048
        }
      }
    }
  },
  "required": [
    "locale",
    "key",
    "fallbacks",
    "resources"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "locale": "de-CH",
  "key": "cancel",
  "fallbacks": [
    {
      "locale": "de-CH",
      "next": "de"
    },
    {
      "locale": "de",
      "next": "en"
    }
  ],
  "resources": {
    "en": {
      "cancel": "Cancel"
    }
  }
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub →