localizeDigits

Localize Latin digits in this string to the given script.

Non-digit characters and digits already outside ASCII 0-9 are kept verbatim. For DigitScript.LATIN this is a no-op and returns the original string instance.

Example - "2082/02/14".localizeDigits(DigitScript.DEVANAGARI)"२०८२/०२/१४".


Localize Latin digits in this string to the digit script implied by locale.

Reads NepaliDateLocale.resolvedDigitScript, so explicit overrides on the locale are respected. Use this overload in UI code that already has a NepaliDateLocale in scope.