Skip to content
HALOWERK

Trade Operations

relative time localized phrase

Relative time translation renders a signed calendar-unit offset as an idiomatic phrase in a chosen locale. Use it when an agent needs a natural status label.

POST https://handel.halowerk.com/v1/relative-time-localized-phrase

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
valueintegerYes
unitSee schemaYes
localestringYes
Show full input schema
{
  "type": "object",
  "properties": {
    "value": {
      "type": "integer",
      "minimum": -10000,
      "maximum": 10000
    },
    "unit": {
      "enum": [
        "second",
        "minute",
        "hour",
        "day",
        "week",
        "month",
        "quarter",
        "year"
      ]
    },
    "locale": {
      "type": "string",
      "maxLength": 45,
      "minLength": 1
    }
  },
  "required": [
    "value",
    "unit",
    "locale"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "locale": "de-DE",
  "value": -1,
  "unit": "day"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub โ†’