Skip to content

Commit

Permalink
[Fix] Illegal chars in Arabic
Browse files Browse the repository at this point in the history
  • Loading branch information
imbue11235 committed Dec 18, 2021
1 parent 9beec32 commit 005c367
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -401,10 +401,10 @@ humanize.SetFallbackLocale("my-fallback-locale")

Currently, the following locales are included in the `humanize` package:

- [Arabic](locale/ar/locale.go) - Thanks [@MohammadSaad1](https://github.com/MohammadSaad1)
- [Danish](locale/da/locale.go)
- [English](locale/en/locale.go)
- [German](locale/de/locale.go)
- [Arabic](locale/ar/locale.go)

#### Contributing locales

Expand All @@ -413,7 +413,6 @@ It would be greatly appreciated and help the package become even more usable acr

List of wanted locales:

- [x] Arabic
- [ ] Dutch
- [ ] Finnish
- [ ] French
Expand Down
8 changes: 4 additions & 4 deletions locale/ar/locale.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ var Code = "ar"
var Locale = locale.Map{
"slice": locale.Map{
"connector": "و",
"rest": "[1] واحد آخر‎ | [2-*] آخرين‎ %d ",
"rest": "[1] واحد آخر‎ | [2-*] آخرين‎ %d ",
},
"time": locale.Map{
"now": "الآن",
"now": "الآن",
"future": "%s بعد",
"past": "%s قبل",
"past": "%s قبل",
"estimation": locale.Map{
"s": "‎[1] ثانية‎ | [2] ثانيتين‎ | [3-10] ثوانٍ %d | [11-*] ثانية %d",
"m": "‎[1]‎ دقيقة‎‎ | [2] دقيقتين‎ | [3-10] دقائق‎‎ %d | [11-*]‎ دقيقة‎ %d",
Expand All @@ -25,7 +25,7 @@ var Locale = locale.Map{
"y": "[1] سنة‎ | [2] سنتين‎ | [3-10] سنين‎ %d‎‎ | [11-*] سنة‎ %d",
"D": "[1] عقد‎ | [2] ‎عقدين‎ | [3-10] عقود‎ %d | [11-99] عقدا %d | [100-*] عقد",
"l": "وقت طويل",
},‎‎
},
"precision": locale.Map{
"s": "‎[1] %d ثانية‎ | [2] %d ثانيتين‎ | [3-10] ثوانٍ %d | [11-*] ثانية %d",
"m": "‎[1]‎ %d دقيقة‎‎ | [2] %d دقيقتين‎ | [3-10] دقائق‎‎ %d | [11-*]‎ دقيقة‎ %d",
Expand Down

0 comments on commit 005c367

Please sign in to comment.