Matt Mayer
Matt Mayer
Agree this would be great, as you could queue up 10-20 prompts to run overnight rather than sit there waiting for each one to finish.
Perhaps locales which aren't in ASCII script should optionally be able to provide an alternative set of ASCII first names and last names to be used in contexts that require...
Sample output for ``` Object.keys(faker.locales).forEach(locale=>{faker.setLocale(locale); console.log(`${locale}: ${faker.internet.email()}`)}) ``` ``` af_ZA: [email protected] ar: [email protected] az: [email protected] cz: [email protected] de: [email protected] de_AT: [email protected] de_CH: [email protected] el: [email protected] en: [email protected] en_AU: [email protected] en_AU_ocker:...
The difference seems to come down to the fact that faker.helpers.slugify has some exceptions for Japanese and Chinese characters https://github.com/faker-js/faker/blame/next/src/modules/helpers/index.ts#L37 ``` slugify(string: string = ''): string { return string .replace(/...
... and that was originally introduced here: https://github.com/faker-js/faker/commit/0d3809d4c83f9f5c29d99040df84b7353fe32255 It seems to have caused more problems than it solved, so perhaps that could be reverted, and a more general solution found...
as a simple solution, in non-ascii locales you could just make a purely random localPart for email addresses like two letters, followed by 5-8 numbers, e.g. `[email protected]` ... at least...
i created #1554 as a tentative solution for this. Not sure would be the best long term solution but it at least means that all locales return valid, ascii, email...
The easiest way to implement this would probably be to have a separate repo with say 10 pdf files, 10 excel files, 10 videos etc. then just return an url...
You could just have a test to check that any locale specific rules are subsets of the global list.
tz zones do very occasionally change, perhaps 1 or 2 new zones per year. For example a new zone America/Ciudad_Juarez was added in November. https://data.iana.org/time-zones/tzdb/NEWS But it's slow enough that...