Skip to content

Extended IME support for @internationalized/number #6623

@Rocss

Description

@Rocss

Provide a general summary of the feature here

I'm playing around with the @internationalized/number and I want to insert numbers using Hindi keyboard. I observed that @internationalized/number allows 'latn', 'arab', 'hanidec' numeric systems, and it works well for arabic keyboard, but it does not work for Hindi keyboard.

🤔 Expected Behavior?

It would be nice to be able to enter numbers using the Hindi - standard and Bengali - standard the same way it works for 'latn', 'arab' and 'hanidec' right now.

😯 Current Behavior

Nothing happens when I type in the number field (which uses @internationalized/number ) using Hindi keyboard.

💁 Possible Solution

Adding deva and beng here: https://github.com/adobe/react-spectrum/blob/main/packages/%40internationalized/number/src/NumberParser.ts#L26 would support Hindi and Bengali IME

Screenshot 2024-05-10 at 12 05 29

🔦 Context

This request comes from our g18n team.
Adobe Express supports a large range of languages. We want to provide users the complete experience by allowing to use the corresponding IME for the language selected.
That would be Japanese, Korean, Simplified Chinese, Traditional Chinese, Hindi, Thai, Bengali, Tamil as the main ones with complex scripts.

💻 Examples

No response

🧢 Your Company/Team

Adobe Express

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions