Fakery icon indicating copy to clipboard operation
Fakery copied to clipboard

Localization 'ru' works incorrect

Open akhatmullin opened this issue 7 years ago • 4 comments

When I try to generate a first name using the 'ru' localization I receive first names for the 'en' localization.

akhatmullin avatar Oct 08 '18 20:10 akhatmullin

@akhatmullin How do you create an instance of Faker class? Is it let faker = Faker(locale: "ru")?

vadymmarkov avatar Oct 09 '18 07:10 vadymmarkov

@vadymmarkov Yes, it is.

akhatmullin avatar Oct 09 '18 09:10 akhatmullin

@vadymmarkov I use version 3.4.0 I looked at the code a little bit and my suggestion that there is a different JSONs structure. For example, we have the array of first names as "first_name" for "en" locale, but we have "male_first_name" for "ru" locale.

akhatmullin avatar Oct 09 '18 18:10 akhatmullin

Nice catch, that's probably it.

vadymmarkov avatar Oct 09 '18 22:10 vadymmarkov