0

I’m working on a multilingual React Native app and using i18next for static UI strings like “Submit” or “Profile” — that part is solid.

But I also need to display user-facing names (stored in English) in Bengali script when the app language is set to Bengali — e.g., "Arijit" → "অরিজিৎ". These names are dynamic (not known at build time), so I can’t pre-translate or hardcode them.

I tried a basic rule-based transliterator, but it struggles with real-world inputs. Most npm packages either don’t support Bengali, aren’t offline-compatible, or rely on Node.js APIs that break in React Native. Google Translate works, but I’d prefer an offline solution for now.

Has anyone found a lightweight, offline-friendly way to handle this in RN? Or is a cloud-based API the only practical path?

2 Answers 2

1

There’s no solid fully offline Bengali transliteration solution for React Native right now. Everything decent either relies on Node.js or is too simplistic. If you want natural looking results go cloud (Google Translate or your own backend). If you really need offline, you can bundle a small ONNX/TFLite model, but that’s extra setup and smth like 15 MB in size.

Sign up to request clarification or add additional context in comments.

1 Comment

Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
0

**You can used Integration with i18next
**
To integrate transliteration into your i18next setup, you can use interpolation to dynamically insert transliterated names into your UI strings. For instance:

i18next.t('greeting', { name: transliteratedName }); 

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.