-
-
Notifications
You must be signed in to change notification settings - Fork 950
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
Check use of the #{pattern}
s in the locales
#725
Comments
Never recognized this |
I traced it back to this commit: Lines 1027 to 1032 in 0048b9f
(14 Sep 2014) which was included in v2.0.0 I searched a few files and commits, but didn't find any method ever dealing with this syntax. |
I'm not sure if this is related, but the faker.locale = 'en_GH';
faker.internet.exampleEmail();
// 'male_first_name22@example.com'
faker.internet.userName()
// '#{female_first_name}.Akowua' |
https://github.com/faker-js/faker/blob/main/src/locales/en_GH/name/first_name.ts In this case its more like a bug. The file contains bad data. |
Will hopefully be fixed by #927 |
Describe the bug
A lot of locale files such as https://github.com/faker-js/faker/blob/main/src/locales/en/address/city.ts contain a
#{pattern}
These files aren't used anywhere and faker does not have a method to use/resolve them with.
Did
faker.fake()
support this syntax at some point or have they been forgotten during a refactor related tofaker.fake()
?I'm not sure what to do with them.
Reproduction
faker/src/locales/en/address/city.ts
Lines 1 to 6 in 2532eb9
Additional Info
There are almost 200 locale files that contain these.
The text was updated successfully, but these errors were encountered: