---
title: "HBS_TRANSLATE_ERROR"
manual: "Handlebars"
version: "main"
permalink: "https://docs.typo3.org/permalink/cpsit/typo3-handlebars-forms:co-hbs-translate-error@main"
source: "Usage/ContentObjects/TranslateError.rst"
rendered: "2026-09-29T09:18:02+00:00"
---

# HBS_TRANSLATE_ERROR {#co-hbs-translate-error}

Returns the translated message for a specific validation error code on the current
renderable. Uses EXT:form's `<formvh:translateElementError>` view helper internally.

**Configuration**

-   **errorCode**

    -   *Type:* int
    -   *Default:* *(required)*

    Numeric validation error code (e.g. `1221560718` for `NotEmpty`).

**Example**

```typoscript
requiredError = HBS_TRANSLATE_ERROR
requiredError.errorCode = 1221560718
```
