Replies: 2 comments 6 replies
-
|
For fakedata, you pass the
Since we know the locale and the yaml files, based on the usage - you can parse the appropriate yaml file and maintain the cache of the parsed yaml file. So throughout the run of the program, you don't have to read the same yaml file again. |
Beta Was this translation helpful? Give feedback.
-
|
I assume you use the filename to guess the scope of the file. So the file containting this yaml should be called valleyball.yml. I did some sampels and it seems to be done like this all the time. I don't think this is required for the current solution faker uses. I think I18n don't care file name. en:
faker:
volleyball:
team:
- A.S.D. Pallavolo Torino
- ACH Volley Ljubljana
- ADC Pirelli
- AERO Odolena Voda |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I want to ask a few questions related to you comment, faker-ruby/faker#2689 (comment). Since faker uses I18n it supports translations with fallback to english I think? how to you know which yaml files you have to parse? since you only parse yaml files on demand?
Beta Was this translation helpful? Give feedback.
All reactions