-
-
Notifications
You must be signed in to change notification settings - Fork 949
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The format of the email address output in Japanese is not correct. #1437
Comments
We do not provide utility functions that are not based on the underlying seed, but you might have luck with e.g. https://www.npmjs.com/package/hepburn and pass the values to the Please use that for a workaround for now as we are now in a maintenance state with faker to move forward to v8. |
Thanks for the reply. I checked Hepburn. |
@shu-pf The linked package was just a quick search with a search engine. I assume you are smart enough to find a suitable npm package for your need very quickly 😉 |
@Shinigami92 So it would be necessary to manually set up the relationship between the Kanji name and the Romaji name to fix this feature. |
So how in the world should Faker then provide a functionality for that 👀 |
I think we could base32(?) encode the incompatible characters. That wont yield nice email addresses, but usable and reproducible ones. |
I think the only way is to make a table of correspondence between kanji and romaji and use it. I don't have a deep understanding of the current code, but if I were to write the code. last_name.ts export default [
'佐藤',
'鈴木',
...
]; last_name_romaji.ts export default [
'Satou',
'Suzuki',
...
]; And for names, use the 'last_name.ts'. It takes a lot of effort to have this done by someone other than a native Japanese speaker, so of course I am willing to help. @ST-DDT It seems to be a realistic solution at this time. |
This has likely been fixed by #1554 and is part of https://github.com/faker-js/faker/releases/tag/v8.0.0-alpha.0. |
Pre-Checks
Describe the bug
Clear and concise description of the problem
Japanese people do not use multibyte characters in their e-mail addresses because using multibyte characters in some e-mail addresses can cause erroneous transmissions.
Therefore, we generally convert the name to romaji first and use that for the e-mail address.
Suggested solution
Current Behavior
Expected behavior
Minimal reproduction code
No response
Additional Context
It may also be possible to solve this problem by creating a function that converts Japanese names to romaji.
Environment Info
Which module system do you use?
Used Package Manager
yarn
The text was updated successfully, but these errors were encountered: