---
schema_version: "1"
id: af767f6133b567dfeec1ca85c659f16a8b084ab3feef86bd7dd839848fa9fe48
title: translateToLocalizedDigits()
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/ref-jsapi/ref-jsapi-auralocalizationservice-translatetolocalizeddigits.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/ref-jsapi-auralocalizationservice-translatetolocalizeddigits.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 7b9dd1e16920d62c236d55b367f4b1f2bd9bff6c26299cd8589ef516dcc90b0f
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# translateToLocalizedDigits()

Translate the input string to a string with localized digits, if there is any.

## Signature

`translateToLocalizedDigits(string input)`

## Parameters

**_input_:** Type: `string`. A string with Arabic digits.

## Returns

**Type: `string`** A string with localized digits.

