english-transliterate is an npm library that helps you convert non-English names into English names. It is particularly useful when dealing with the internationalization and localization of applications, ensuring that names from different languages can be represented in English characters.
You can install package using npm:
npm i english-transliterate
To use english-transliterate in your project, follow these simple steps:
- Import the library into your JavaScript/TypeScript file:
const translate = require('english-transliterate');
- Transliterate a non-English name:
const name = "अपूर्व "; // Non-English name, e.g., in Hindi (Devnagiri)
const transliteratedName = translate(name);
console.log(transliteratedName); // Outputs: "apoorva"
english-transliterate currently supports transliteration for a wide range of languages, including but not limited to:
- Chinese
- Japanese
- Russian
- Arabic
- Greek
- Hindi
- Korean
- French
- And many more...
If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Make your changes, and ensure that the code is well-documented and follows the coding guidelines.
- Create a pull request.
english-transliterate is licensed under the MIT License. Please see the LICENSE file for more details.
If you encounter any bugs or have feature requests, please open an issue on GitHub. We welcome your feedback and contributions!