# generaltranslation: General Translation Core SDK: VariableType URL: https://generaltranslation.com/es/docs/core/types/variable-type.mdx --- title: VariableType description: Enumeración de tipos de formato para variables en la traducción de contenido dinámico --- ## Resumen `VariableType` especifica cómo se da formato a las variables en el contenido traducido. ```typescript type VariableType = 'v' | 'n' | 'd' | 'c'; ``` ## Valores | Valor | Descripción | | ----- | -------------------------------- | | `'v'` | Sustitución de texto sin formato | | `'n'` | Formato de número | | `'d'` | Formato de fecha | | `'c'` | Formato de moneda | ## Ejemplos ### Uso básico ```typescript copy import { Variable, VariableType } from 'generaltranslation'; const textVar: Variable = { k: 'name', v: 'v' }; const numberVar: Variable = { k: 'count', v: 'n' }; const dateVar: Variable = { k: 'date', v: 'd' }; const currencyVar: Variable = { k: 'price', v: 'c' }; ``` ## Tipos relacionados * [`Variable`](/docs/core/types/Variable) - Tipo principal que usa VariableType