## 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`: the string to replace resources in. - `language`: ISO 639-1 language code. Optional; defaults to current user interface language. Returns: the input with all resources replaced by their translation in the specified language.