# TRANSLATE

Traduce el valor proporcionado utilizando un diccionario específico.

## Sintaxis

```
TRANSLATE(dictionary, keepValuesWithoutTranslation, emptyAsNull, input)
```

## Argumentos

| Nombre | Tipo | Descripción | Valor predeterminado |
| --- | --- | --- | --- |
| dictionary | cadena de texto |  |  |
| keepValuesWithoutTranslation | booleano | ¿Conservar los valores que no están asociados a un valor en la función? |  |
| emptyAsNull | booleano | Si se establece, los valores vacíos se tratarán como nulos |  |
| input | cadena de texto/numérica |  |  |

## Devuelve

Devuelve un valor: `string`.

***

## Ejemplos

| dictionary | keepValuesWithoutTranslation | emptyAsNull | input | Resultado |
| --- | --- | --- | --- | --- |
| 'a,Antman |  |  |  |  |
| b,Batman |  |  |  |  |
| d,' | false | false | 'a' | `Antman` |
| 'a,Antman |  |  |  |  |
| b,Batman |  |  |  |  |
| d,' | false | false | 'b' | `Batman` |
| 'a,Antman |  |  |  |  |
| b,Batman |  |  |  |  |
| d,' | false | false | 'c' | null |
| 'a,Antman |  |  |  |  |
| b,Batman |  |  |  |  |
| d,' | true | false | 'c' | `c` |
| 'a,Antman |  |  |  |  |
| b,Batman |  |  |  |  |
| d,' | true | true | 'd' | null |
| 'a,Antman |  |  |  |  |
| b,Batman |  |  |  |  |
| d,' | true | false | 'd' | `` |
| '1234.0,good' | false | false | 1234 | `good` |
| '1234.0,good' | false | false | 1234 | `good` |
| '0.0,good' | false | false | 0 | `good` |
| '-0.0,good' | false | false | 0 | `good` |
| '-0.0,good' | false | false | 0 | `good` |
| '1.23456e17,good' | false | false | 123456000000000000 | `good` |
| '6.000000000000001,good' | false | false | 6 | null |