Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[new locale] ar-ps: Arabic (Palestine) #5190

Closed
wants to merge 8 commits into from
Closed

Conversation

majdal
Copy link
Contributor

@majdal majdal commented Aug 7, 2019

Hello - Just adding a new local that has Syriac month names, used in Palestine, Lebanon, Syria, Jordan, and Iraq (see).

@jsf-clabot
Copy link

jsf-clabot commented Aug 7, 2019

CLA assistant check
All committers have signed the CLA.

@majdal majdal changed the title Added a Palestinian locale (ar-ps.js), uses Syriac month names [locale] Added a Palestinian locale (ar-ps.js), uses Syriac month names Aug 7, 2019
@coveralls
Copy link

coveralls commented Aug 7, 2019

Coverage Status

Coverage increased (+0.005%) to 88.501% when pulling 115fe46 on majdal:develop into 94ae935 on moment:develop.

@ichernev
Copy link
Contributor

@majdal when adding a new locale you need to put it under src/locale/xx.js and add tests to src/test/locale/xx.js. Files under locale/* are autogenerated and not touched by hand.

@ichernev ichernev added the todo label Apr 23, 2020
@marwahaha
Copy link
Member

Looks like the prettier check failed. I think you can fix it with npm run prettier-fmt

@marwahaha marwahaha changed the title [locale] Added a Palestinian locale (ar-ps.js), uses Syriac month names [new locale] Added a Palestinian locale (ar-ps.js), uses Syriac month names May 22, 2020
@marwahaha
Copy link
Member

Unfortunately, the months are not parsing correctly! This is why the tests are failing.

.split('') // reversed since negative lookbehind not supported everywhere
.reverse()
.join('')
.replace(/[١٢](?![\u062a\u0643])/g, function (match) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is done to avoid parsing the month numbers used in monthsShort.

@majdal
Copy link
Contributor Author

majdal commented Jun 17, 2020

I'll need to change the tests too: we should be using Arabic numerals (1, 2, 3...) instead of the currently defined Indian numerals (١، ٢، ٣...).

@marwahaha marwahaha added the todo label Jun 17, 2020
@marwahaha
Copy link
Member

Ok @majdal . Let me know how I can assist!

@marwahaha
Copy link
Member

@majdal any updates?

@ichernev
Copy link
Contributor

Merged in 794938a

@ichernev ichernev changed the title [new locale] Added a Palestinian locale (ar-ps.js), uses Syriac month names [new locale] ar-ps: Arabic (Palestine) Dec 23, 2023
@ichernev ichernev closed this Dec 23, 2023
ichernev added a commit that referenced this pull request Dec 23, 2023
[new locale] ar-ps: Arabic (Palestine)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants