vadymmarkov/Fakery

japanese localization doesn't produce sentences

romk1n opened this issue · 1 comments

I have the following code

let fakery = Faker(locale: "ja")
let sentence = fakery.lorem.sentence(wordsAmount: random() % 100)

but the result is

(lldb) p sentence
(String?) $R0 = "  ."

any idea?
Thanks.

@romk1n Hi, sorry for my supper late reply. It happens because japanese localisation has less data comparing for example to english. To generate sentences it needs to have "lorem" dictionary like in https://github.com/vadymmarkov/Fakery/blob/master/Resources/Locales/en.json#L4744. Feel free to contribute if you feel like it's something you'd like to do.