# l10n

Source: https://zotonic.com/docs/1775/l10n

URI: https://zotonic.com/id/1775

Language: en



Model for localization helpers, including countries, country names, available timezones, and site timezone settings.

Available Model API Paths
-------------------------

| Method | Path pattern              | Description                                                                      |
| ------ | ------------------------- | -------------------------------------------------------------------------------- |
| `get`  | `/countries/...`          | Return all ISO country codes with country names translated in the current context language, sorted by translated name. |
| `get`  | `/country_name/+code/...` | Return the translated country name for ISO code `+code` using language fallback rules; returns `+code` itself when unknown. |
| `get`  | `/timezones/...`          | Return all timezone identifiers from the bundled timezone database (`qdate_localtime`) as binaries. |
| `get`  | `/default_timezone/...`   | Return site timezone setting `mod_l10n.timezone` used as default timezone.       |
| `get`  | `/timezone_is_fixed/...`  | Return site flag `mod_l10n.timezone_is_fixed` indicating if user timezone selection is disabled. |

`/+name` marks a variable path segment. A trailing `/...` means extra path segments are accepted for further lookups.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1775?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1775?language=en>)
