mimesis icon indicating copy to clipboard operation
mimesis copied to clipboard

Add Arabic language support

Open lk-geimfari opened this issue 1 year ago • 6 comments

Arabic is one of the most widely spoken languages, with a total of 362 million speakers, so it might be a good idea to support it in Mimesis.

There is a list of countries to support:

  • [ ] ar-sa (Saudi Arabia)
  • [ ] ar-eg (Egypt)
  • [ ] ar-dz (Algeria)
  • [ ] ar-tn (Tunisia)
  • [ ] ar-ye (Yemen)
  • [ ] ar-jo (Jordan)
  • [ ] ar-kw (Kuwait)
  • [ ] ar-bh (Bahrain)
  • [ ] ar-iq (Iraq)
  • [ ] ar-ly (Libya)
  • [ ] ar-ma (Morocco)
  • [ ] ar-om (Oman)
  • [ ] ar-sy (Syria)
  • [ ] ar-lb (Lebanon)
  • [ ] ar-ae (U.A.E.)
  • [ ] ar-qa (Qatar)

Obviously, the most common data should be inherited from the base locale to avoid duplicate data.

Related issues:

  • #1439
  • #1440

lk-geimfari avatar Oct 21 '23 15:10 lk-geimfari

So if there is anyone who knows Arabic, please let me know.

lk-geimfari avatar Oct 21 '23 15:10 lk-geimfari

Hello, I can speak Arabic (from Egypt). How can I help?

Iten-No-404 avatar Nov 22 '23 09:11 Iten-No-404

You can take a look at how locales are organized in Mimesis right here: https://github.com/lk-geimfari/mimesis/tree/master/mimesis/data/locale_template

After that, you need to add Arabic data to all files (person.json, datetime.json etc.)

lk-geimfari avatar Nov 23 '23 12:11 lk-geimfari

@Iten-No-404 ^

lk-geimfari avatar Nov 23 '23 12:11 lk-geimfari

Alright, I'll take a look and hopefully start a pull request soon. I'll let you know if I have any questions.

Iten-No-404 avatar Nov 23 '23 12:11 Iten-No-404

@Iten-No-404 Great! Thank you!

lk-geimfari avatar Nov 23 '23 19:11 lk-geimfari