Closed slackline closed 5 years ago
@slackline Hi! Thanks for your interest. It seems like at this moment we do not count locale on generating currency iso code.
@ceccoemi Are you interesting? It's can be done easily, but I'm busy until this weekends.
@slackline We will work on it ASAP. Thanks again for your report.
Thanks for the rapid response @lk-geimfari. I've started looking at the code to see if I could come up with a solution, if I can work it out before then I'll submit a PR.
What we need to do:
business.json
allow_random=True
to have availability of support much more currency codes (so as not to limit their number - the number of languages supported.).@lk-geimfari @slackline I'm working on this
@ceccoemi Great! Thank you very much!
Thanks @ceccoemi
Bug report
What's wrong
I'm trying to use mimesis to generate mock data for tests I'm going to develop and am writing schema to do so.
I set the locale when instantiating an object of class
Field()
, but on callingbusiness.currency_iso_code()
I get random ISO currency codes, whilst I was expecting (or hoping!) to get those for the current locale.The
business.price
is always the correct locale, but thebusiness.currency_iso_code
varies as the following shows...I checked with
Generic('en-gb')
and it too returns random ISO currency codes rather than the expectedGBP
...How is that should be
I would expect
business.currency_iso_code()
to return the code for the specified locale.System information