Provides the action GetCurrencyFormattedByLocale that formats a decimal based on the locale provided.
It also provides a list of all the Locales available for usage with GetLocales.
Provides the action GetDecimalFromLocaleDecimalString converts a Locale Decimal String (a decimal that was written in in a certain locale) into a valid Decimal.
It takes advantage of C#'s System.Globalization namespace and the CultureInfo and NumberFormatInfo classes.
Fixed
- Added `CurrencyNegativePattern` 16 (`$- n`) to the negative-pattern lookup table, fixing locales that use this pattern on .NET ICU runtimes (e.g. `luy-KE`).
- Added bounds-check safety guards on `NegativePatterns` and `PositivePatterns` array indexing for forward compatibility with future .NET pattern values.
- O11: `IsValidDecimal` now correctly set to `false` on error paths (XIF original left it as `true` even on parsing failure).
- O11: Null-safety added for the `currency` parameter in `GetCurrencyFormattedByLocale` and `GetDecimalFromLocaleDecimalString`.
- O11: Chinese decimal path now uses `CultureInfo.InvariantCulture` for consistent `ToString()` output.
- XIF source synced with all fixes above; target framework updated from v4.6.1 to v4.8.