Comments (16)
Good question! I think we should first of look at other faker implementations and get ideas from them. Do for example the python/ruby package supports LTR? If they do, perhaps their way is a good starting point. If they don't, then perhaps faker.languages
can be the way forward.
from faker.
Ohh cool
Thanks for the info, I will check it out when it's ready. Let me know if I can help in any other way, adding translations, docs, etc... I have some free time at the moment and would be glad to help out!
from faker.
hey @nombrekeff
I added the rest of the DataProviders in here (#49) . feel free to check it
from faker.
@easazade Makes sense and sounds like good addition. Feel free to send a PR!
from faker.
@drager Great, do you have any suggestion on how to approach implementing feature?
I'm thinking something like this for example :
faker.languages.farsi.words(3)
from faker.
@drager I checked. Python package supports Localization of Data and implemented it using different Data Providers
to provide localized data for each different Locale.
here is what they do :
from faker import Faker
fake = Faker('it_IT')
for _ in range(10):
print(fake.name())
# 'Elda Palumbo'
# 'Pacifico Giordano'
# 'Sig. Avide Guerra'
# 'Yago Amato'
# 'Eustachio Messina'
# 'Dott. Violante Lombardo'
# 'Sig. Alighieri Monti'
# 'Costanzo Costa'
# 'Nazzareno Barbieri'
# 'Max Coppola'
from faker.
@drager I checked. Python package supports Localization of Data and implemented it using different
Data Providers
to provide localized data for each different Locale.here is what they do :
from faker import Faker fake = Faker('it_IT') for _ in range(10): print(fake.name()) # 'Elda Palumbo' # 'Pacifico Giordano' # 'Sig. Avide Guerra' # 'Yago Amato' # 'Eustachio Messina' # 'Dott. Violante Lombardo' # 'Sig. Alighieri Monti' # 'Costanzo Costa' # 'Nazzareno Barbieri' # 'Max Coppola'
Awesome, that seems like a good way of doing it? Or what do you think?
from faker.
@drager I was thinking we should add LocaleDataProvider
for each locale (which falls to the community to do so). but also allow user to add its own CustomDataProvider
. this is really helpful for demo purposes when creating Flutter apps and creating fake data which is more relevent to the app. So I think starting with the CustomDataProvider
makes more sense
from faker.
@drager thanks for the merge. I will start adding DataProvider
to the rest of the faker features that can be customized by localizations or etc.
from faker.
@easazade Thank you! Sounds great!
from faker.
I would like to help with portuguese br translation when available.
from faker.
@rumbleh Feel free to work on it!
from faker.
next time I contributed in order to finish this. I remember to add some documentation.
from faker.
Is anyone working on this? I would love to give it a go if nobody is working on it.
I'm wanting to localize it for randomizing Spanish data
from faker.
@nombrekeff thank you for the comment. reminded me there is unfinished work to be done here. I decided to add the rest of the data providers to other data generators like address , food job and etc. after that everyone can add their own customized DataProviders
like SpanishLoremProvider
or SpanishAddressProvider
and so force
from faker.
I should also update the docs
from faker.
Related Issues (20)
- Phone number support HOT 1
- Getting a random image with the same keywords and size parameters always returns the same image. HOT 1
- Null-safety support HOT 2
- Unnecessary nullables HOT 2
- JWT Support HOT 3
- Type `amount` HOT 1
- Make it null safe HOT 2
- Update for null safe HOT 2
- 1 positional argument(s) expected, but 0 found. Try adding the missing arguments HOT 2
- Is this package still maintainable ? HOT 1
- Latitude and Longitude HOT 2
- Generate DateTime in between 2 Dates HOT 1
- Vehicle doesn't use the same random instance as the others HOT 1
- Ability to generate date with a specific format and add more attribute to person class HOT 2
- A random hour generator its contains only digits HOT 1
- Generate color? HOT 1
- Pass RandomGenerator in private in the specific generator.
- Soon a release? HOT 2
- Multiple fakers in a list HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from faker.