Locale Types
Locale types store standardized international codes.
Reference
Section titled “Reference”| Type | Expands To | Standard |
|---|---|---|
col.country() | string(2) | ISO 3166-1 alpha-2 |
col.currency() | string(3) | ISO 4217 |
col.locale() | string(10) | BCP 47 |
col.timezone() | string(50) | IANA |
Example
Section titled “Example”export default table({ id: col.id(), country: col.country(), currency: col.currency(), locale: col.locale(), timezone: col.timezone(),});Valid Values
Section titled “Valid Values”Country: US, GB, DE, JP, BR
Currency: USD, EUR, GBP, JPY, BRL
Locale: en-US, en-GB, de-DE, ja-JP, pt-BR
Timezone: America/New_York, Europe/London, Asia/Tokyo