## Syntax
```mermaid
%%{init: {
'theme': 'base',
'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
'themeVariables': {
'fontSize': '11px',
'fontFamily': 'Arial'
}
}}%%
flowchart LR
Start((START)) --> TRANSLATE_RESOURCES[TRANSLATE_RESOURCES]:::quoted
TRANSLATE_RESOURCES --> End((END))
```
## Purpose
The `TRANSLATE_RESOURCES` SQL function replaces all Invantive-style resources (`{res:...}`) by their translation in the specified user interface language.
Parameters:
- `txt` (`varchar2`): the string to replace resources in.
- `language` (optional, `varchar2`): [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code; defaults to current user interface language.
Returns: the input with all resources replaced by their translation in the specified language.
## Examples
The following example translates the resource `itgen_description` to English:
```sql
select translate_resources('{res:itgen_description}', 'en')
-------------------
Description
```
The following example translates the resource `itgen_description` to Dutch:
```sql
select translate_resources('{res:itgen_description}', 'nl')
-------------------
Omschrijving
```