Matt Mayer
Matt Mayer
Because other methods might emit emoji or non ascii characters, not just this one.
As another workaround you can easily strip emojis from a string using Unicode [property escapes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Unicode_character_class_escape): ```js faker.person.bio().replace(/\p{Emoji}/gu, ''); ```
compare #1548 (requesting full language names)
The codes like "en" are not locale dependent so they should be in fakerbase The language names are locale dependent however. So it would probably be two methods? faker.location.languageCode() and...
I'd still make it two methods for consistency with .country() and .countryCode() Anyway I agree with closing #1548 to keep discussion and upvotes in one place
Note that only a small number of languages have a 2 character code. Many more have a three character code.
For reference for the migration guide, these are the completely removed methods: (WIP, once this is finished we can add to the migration guide) ### Deprecated methods removed A large...
i think there might be logic in not removing the faker.phone.number({ format }) method in this initial commit until a good replacement (e.g. #2578 ) is merged?
My initial draft for the migration guide is done, https://github.com/faker-js/faker/pull/2608#issuecomment-1901742274 when you have a chance you can add that initial text to `docs/guide/upgrading_v9/2608.md`
Sure no hurry then