Textwerk
locale format
Uses the Intl APIs of the runtime (CLDR 48 via ICU 78) to format the given values per locale and returns formatToParts-derived conventions: decimal and group separator, currency symbol position and spacing, percent sign spacing, numbering system, calendar, hour cycle, first day of week and weekend (Intl.Locale week info). Dates are ISO 8601 strings: a plain date is shown as that calendar date, a date-time with offset as that instant in time_zone, a date-time without offset as wall-clock time.
POST https://text.halowerk.com/v1/locale-formatInputs
| Field | Type | Required | Description |
|---|---|---|---|
| locales | array | Yes | BCP 47 locales, e.g. de-DE, en-US, fr-CH. |
| number | number | No | Number to format. |
| currency | object | No | Amount to format as currency. |
| percent | number | No | Fraction, 0.25 = 25 %. |
| date | string | No | ISO 8601 date or date-time. |
| time_zone | string | No | IANA time zone for date-times, e.g. Europe/Berlin. |
| date_style | string | No | CLDR date style. |
| unit | object | No | Measure to format with a unit. |
| list | array | No | Items to join as a conjunction list. |
| relative | object | No | Relative time, e.g. -1 day. |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"required": [
"locales"
],
"properties": {
"locales": {
"type": "array",
"minItems": 1,
"maxItems": 20,
"items": {
"type": "string",
"maxLength": 35
},
"description": "BCP 47 locales, e.g. de-DE, en-US, fr-CH."
},
"number": {
"type": "number",
"description": "Number to format."
},
"currency": {
"type": "object",
"additionalProperties": false,
"required": [
"amount",
"code"
],
"description": "Amount to format as currency.",
"properties": {
"amount": {
"type": "number",
"description": "Amount."
},
"code": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "ISO 4217 currency code."
}
}
},
"percent": {
"type": "number",
"description": "Fraction, 0.25 = 25 %."
},
"date": {
"type": "string",
"maxLength": 40,
"description": "ISO 8601 date or date-time."
},
"time_zone": {
"type": "string",
"maxLength": 60,
"default": "UTC",
"description": "IANA time zone for date-times, e.g. Europe/Berlin."
},
"date_style": {
"type": "string",
"enum": [
"full",
"long",
"medium",
"short"
],
"default": "medium",
"description": "CLDR date style."
},
"unit": {
"type": "object",
"additionalProperties": false,
"required": [
"value",
"unit"
],
"description": "Measure to format with a unit.",
"properties": {
"value": {
"type": "number",
"description": "Value."
},
"unit": {
"type": "string",
"maxLength": 40,
"description": "ECMA-402 unit identifier, e.g. kilometer, kilogram, celsius."
}
}
},
"list": {
"type": "array",
"maxItems": 50,
"items": {
"type": "string",
"maxLength": 200
},
"description": "Items to join as a conjunction list."
},
"relative": {
"type": "object",
"additionalProperties": false,
"required": [
"value",
"unit"
],
"description": "Relative time, e.g. -1 day.",
"properties": {
"value": {
"type": "number",
"description": "Offset; negative values lie in the past."
},
"unit": {
"type": "string",
"enum": [
"second",
"minute",
"hour",
"day",
"week",
"month",
"quarter",
"year"
],
"description": "Unit of the offset."
}
}
}
}
}Published input example
{
"locales": [
"de-DE",
"en-US",
"fr-FR"
],
"number": 1234567.891,
"currency": {
"amount": 1234.5,
"code": "EUR"
},
"date": "2026-10-31T12:00:00Z",
"time_zone": "Europe/Berlin"
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.
More endpoints in this hub
- Textwerk0.002 USDC
acronym ideas
POSThttps://text.halowerk.com/v1/acronym-ideasSplits the title into words, marks German and English stop words (and, of, für, und ), and enumerates in word order every combination of the first 1-3 letters of each significant word (stop words contribute 0 or 1 letter when allowed), with
- Textwerk0.005 USDC
agg check
POSThttps://text.halowerk.com/v1/agg-checkApplies documented rules to the ad text and its first line or title: explicit age limits and age ranges, youth-related team wording and career-stage target groups (age); native-speaker, accent and origin requirements, nationality (ethnic or
- Textwerk0.002 USDC
anglicism replace
POSThttps://text.halowerk.com/v1/anglicism-replaceLooks up every word in about 1,050 entries that OpenThesaurus (export 2026-10-30, LGPL-2.1 or CC BY-SA 4.0) labels English, Anglicism or Denglisch, matching inflected forms from german-pos-dict 1.2.2 (CC BY-SA 4.0) and English heads of comp