Modules
Locale-aware formatting, validation, and data access built on the Unicode CLDR repository.
Exception raised when interpreting a message and one or more variable bindings are missing.
Calendar localization functions for retrieving locale-specific names for eras, months, days, quarters, and day periods.
Protocol for locale-aware string formatting.
Implements the Unicode Collation Algorithm (UCA) as extended by CLDR.
A Collation Element (CE) with primary, secondary, and tertiary weights.
Fast lookup table for Basic Latin and Latin Extended-A codepoints.
Han character ordering using radical-stroke indexes.
Computes implicit collation elements for codepoints not in the DUCET/CLDR allkeys table.
Case-insensitive string comparator for use with Enum.sort/2.
Collation NIF interface providing high-performance Unicode collation via ICU4C.
Unicode NFD normalization for collation.
Delegates to Erlang's :unicode module.
Numeric collation support (kn=true / numeric=true).
Collation options corresponding to BCP47 -u- extension keys.
Script reordering for collation (kr= / reorder option).
Case-sensitive string comparator for use with Enum.sort/2.
Constructs binary sort keys from processed collation elements.
Persistent-term-backed collation element table.
Parses the FractionalUCA.txt file into a map of codepoint sequences to collation elements.
CLDR locale-specific collation tailoring.
Preset collation option defaults for common locales.
Variable weight handling for the collation algorithm.
Defines a currency structure and functions to manage currency codes, validate currencies, and retrieve currency metadata.
Exception raised when a currency has no display name available for the requested locale.
Exception raised when a known currency code has no localized data in the requested locale.
A GenServer that serializes ETF data file loading to prevent race conditions.
Provides localized formatting of Date structs and date-like maps.
Provides localized formatting of DateTime, NaiveDateTime,
and datetime-like maps.
Formats relative time strings such as "3 days ago", "tomorrow", or "in 10 seconds".
Provides timezone data access and timezone formatting for CLDR date/time format symbols.
Exception raised when a date, time, or datetime format pattern cannot be processed.
Exception raised when an interval format cannot be resolved.
Exception raised when a date, time, or datetime value does not have the required keys for formatting.
Exception raised when a date, time, or datetime format skeleton cannot be resolved to a pattern for the given locale.
Functions to create and format durations — the difference between two dates, times, or datetimes expressed in calendar units.
Conventions and a small behaviour shared by structured Localize exceptions.
An ETS-backed cache for compiled format patterns.
Exception raised when a value cannot be formatted by the requested message format function due to an incompatible type or missing configuration.
Gettext backend for the Localize library.
Gettext interpolation module for ICU MessageFormat 2 (MF2) messages.
Formats date and time intervals as localized strings.
Exception raised when a locale identifier cannot be parsed into a valid language tag.
Exception raised when an extension key or value is not valid for a BCP 47 language tag.
Exception raised when a value does not meet the expected type or constraints for an operation.
Exception raised when a key path cannot be resolved in locale data.
Provides language name localization functions built on the Unicode CLDR repository.
Parses a CLDR language tag (also referred to as locale string).
Implements a sigil_l/2 macro for
constructing t:Localize.LanguageTag structs.
Defines the struct for the BCP 47 t
extension.
Defines the struct for the BCP 47 u
extension.
Exception raised when likely subtags data cannot be found for a given locale identifier.
Formats lists into locale-aware strings using CLDR list formatting patterns.
Defines the structure for list formatting patterns.
Locale utility functions for resolution, validation, and per-locale data access.
A GenServer that serializes locale data loading to prevent race conditions.
Implements the CLDR locale display name algorithm to format locale identifiers for presentation.
Defines the behaviour for locale data providers.
On-disk cache for downloaded locale data files.
A locale data provider that stores locale data in :persistent_term.
Exception raised when a locale file cannot be written to the locale cache directory.
Exception raised when locale display name data is not available for a requested locale.
Exception raised when a locale file cannot be downloaded from its remote URL.
Exception raised when a cached locale file's version does not
match the current Localize.version/0.
Exception raised when no matching locale can be found within the specified distance threshold.
Exception raised when a locale file is not found in the locale cache directory, or cannot be read for another I/O reason.
Implements ICU MessageFormat 2 with functions to parse and interpolate messages.
Dispatch module for rendering MF2 highlight tokens.
ANSI terminal formatter for MF2 highlight tokens.
HTML formatter for MF2 highlight tokens.
Plain-text formatter for MF2 highlight tokens.
mix format plugin that
canonicalises ICU MessageFormat 2 (MF2) messages.
Behaviour for custom MF2 formatting functions.
Produces a classified token stream from an MF2 AST for syntax highlighting.
Interprets a MessageFormat 2 AST and produces formatted output.
Converts between MF2 ASTs and the JSON interchange data model defined in TR35 §8.
Implements a parser for ICU MessageFormat 2.
Converts a MessageFormat 2 AST back to its canonical string form.
Implements sigils for ICU MessageFormat 2 messages.
Optional NIF interface to ICU4C for high-performance locale operations.
Exception raised when no certificate trust store can be located.
Exception raised when a parent locale is requested for the
root locale (und) which has no parent.
Exception raised when a territory has no parent container in the CLDR territory containment data.
Exception raised when two date or datetime values are considered
equal at every field used by Localize.Interval.greatest_difference/2,
so no greater-than-zero interval field can be returned.
Functions for formatting numbers in a locale-aware manner.
Functions to manage the collection of number format patterns defined in CLDR.
Compiles number format patterns into metadata for fast runtime interpretation.
Describes the metadata that drives number formatting and provides functions to update the struct.
Formats numbers as rational fractions using CLDR rational format patterns.
Functions for parsing numbers and currencies from strings in a locale-aware manner.
Defines plural rule modules for cardinal and ordinal number categories according to the CLDR plural rules specification.
Implements cardinal plural rules for numbers.
Implements ordinal plural rules for numbers.
Rules-Based Number Formatting (RBNF) for algorithmic number systems and spellout forms.
Functions to manage the number symbol definitions for a locale and number system.
Functions to manage number systems for a locale.
Functions to transliterate digits between number systems.
Exception raised when a language tag, unit identifier, or MF2 message cannot be parsed.
Provides script name localization functions built on the Unicode CLDR repository.
Compiles substitution templates of the form "{0} something {1}"
into token lists for efficient parameter substitution at runtime.
Provides territory and subdivision localization functions built on the Unicode CLDR repository.
Territory subdivision localization functions.
Provides localized formatting of Time structs and time-like maps.
Represents and formats CLDR units of measure.
Converts parsed unit ASTs into their CLDR base unit equivalents.
Canonicalises CLDR unit identifier ASTs and names.
Converts numeric values between CLDR units of measure.
Nonlinear conversion between the Beaufort wind force scale and meters per second.
Runtime registry for user-defined units backed by :persistent_term.
Compile-time extraction of CLDR unit data from a pre-built ETF file.
Arithmetic operations on Localize.Unit structs.
Overloaded arithmetic operators for Localize.Unit.t() values.
Parses CLDR Unit of Measure identifier strings into structured ASTs.
Returns the preferred units for a given unit, territory, and usage.
Exception raised when a unit conversion cannot be performed.
Exception raised when a unit operation requires a numeric value
but the unit struct has nil as its value.
Exception raised when a unit preference cannot be determined for a given unit, region, or usage combination.
Exception raised when a calendar name is not a known CLDR calendar type.
Exception raised when a currency code is not a known ISO 4217 or registered custom currency.
Exception raised when a language code cannot be found in the locale display name data.
Exception raised when a locale identifier does not correspond to any known CLDR locale.
Exception raised when a measurement system type is not a known CLDR measurement system.
Exception raised when a number system name is not a known CLDR number system.
Exception raised when no plural rules are available for a given locale.
Exception raised when an RBNF rule name cannot be resolved for a given locale.
Exception raised when a script code is not a known ISO 15924 or CLDR script subtag.
Exception raised when a display name style is not one of
the known styles (:short, :standard, :variant).
Exception raised when a territory subdivision code is not a known ISO 3166-2 subdivision.
Exception raised when a territory code is not a known ISO 3166 territory or CLDR region code.
Exception raised when a timezone identifier cannot be resolved to a known IANA timezone.
Exception raised when a unit identifier cannot be resolved to a known CLDR unit.
Utility functions and namespace for Localize utility submodules.
Compatibility layer for Decimal library operations.
Abstract representation of number (integer, float, Decimal) in tuple form and functions for transformations on number parts.
Enumerable utility functions not provided in the standard library.
General purpose helper functions for Localize.
Supports securely downloading HTTPS content.
JSON decoding utilities wrapping the OTP :json module.
Functions for transforming maps, keys and values.
Mathematical helper functions for number formatting and Localize subsystems.
String manipulation functions not provided in the standard library.
Mix Tasks
Downloads locale ETF files from the Localize CDN and stores them in the configured locale cache directory.