> For clean Markdown of any page, append `.md` to the page URL.
> For a complete documentation index, see https://docs.sarvam.ai/llms.txt.
> For full documentation content in one file, see https://docs.sarvam.ai/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.sarvam.ai/_mcp/server.

# How to use native numerals

> Control whether translated numbers appear as international digits (0-9) or language-specific native numerals with use_native_numerals.

`use_native_numerals` controls how numbers appear in the translated document.

| Value            | Behavior                          |
| ---------------- | --------------------------------- |
| `null` (default) | Uses the application default      |
| `false`          | International numerals (0-9)      |
| `true`           | Language-specific native numerals |

### Example

For a Hindi translation of a sentence containing a phone number:

* **International** (`use_native_numerals: false`): `मेरा phone number है: 9840950950`
* **Native** (`use_native_numerals: true`): `मेरा phone number है: ९८४०९५०९५०`

## Example

#### Python

```python
from sarvamai import SarvamAI

client = SarvamAI(api_subscription_key="YOUR_SARVAM_API_KEY")

job = client.document_translation.create(
    job_name="invoice-hi",
    source_language_code="en-IN",
    target_language_codes=["hi-IN"],
    original_filename="invoice.pdf",
    use_native_numerals=True,
)
```

#### JavaScript

```javascript
import { SarvamAIClient } from "sarvamai";

const client = new SarvamAIClient({
    apiSubscriptionKey: "YOUR_SARVAM_API_KEY",
});

const job = await client.documentTranslation.create({
    job_name: "invoice-hi",
    source_language_code: "en-IN",
    target_language_codes: ["hi-IN"],
    original_filename: "invoice.pdf",
    use_native_numerals: true,
});
```

Request body equivalent:

```json
{
  "job_name": "invoice-hi",
  "source_language_code": "en-IN",
  "target_language_codes": ["hi-IN"],
  "original_filename": "invoice.pdf",
  "use_native_numerals": true
}
```

## Related

* [Document Translation Overview](/api/api-guides-tutorials/doc-translation/overview)
* [Text Translation API — numerals\_format](/api-reference/text/translate-text)