Locale-aware string comparison.
The first string to compare.
The second string to compare.
Normalization flags applied to both strings; both default to false.
Fold accents and non-ASCII characters before comparing when true.
Lowercase both strings before comparing when true.
A negative number if first < second, 0 if equal, positive if first > second.
Format an internationalized message string, optionally pluralized.
The base key to use for i18n.
An object containing interpolation values.
If present, plural form will be chosen.
If true, uses ordinal plural rules.
If true, uses fallback localization ("en" by default).
Optionalcount?: numberIf present, plural form will be chosen.
Optionalordinal?: booleanIf true, uses ordinal plural rules.
OptionaluseFallback?: booleanIf true, uses fallback localization ("en" by default).
A formatted message string.
Format a duration object into a compact string (e.g., "2y 3m 5d"). Fallback to English formatting for unsupported languages.
An object with time fields to format.
A formatted string.
Localizes a string based on the provided string ID using the game's internationalization system. If the string ID is not found or is invalid, it returns the string ID itself as a fallback.
The ID of the string to localize. This should correspond to a key in the localization files.
The default string to return if the localization is not found.
If true, attempts to use a fallback localization if the string ID is not found. Defaults to false.
The localized string if found, or the default string if not found or invalid.
Normalize a string for comparison or matching.
With ascii enabled, strips combining diacritics (NFD decomposition)
and collapses non-printable/non-ASCII characters to spaces; with
caseInsensitive enabled, lowercases the result.
The string to normalize.
Normalization flags; both default to true.
Fold accents and non-ASCII characters when true.
Lowercase the string when true.
The normalized string, or "" for falsy input.
Convert seconds to a DurationValue object
The number of seconds to convert
A DurationValue object
StaticgetReturn the shared singleton instance, creating it on first access.
The SohlLocalize singleton.
A utility class for localization and internationalization (i18n). Provides methods for locale-aware string comparison, sorting, formatting of durations, relative times, numbers, lists, and message templates.