Skip to content

Commit

Permalink
Merge pull request #66 from sadegh19b/persian-translation
Browse files Browse the repository at this point in the history
Add Persian translation
  • Loading branch information
mskocik authored Oct 12, 2022
2 parents 110ab75 + 1624454 commit 5746236
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function onChange(event) {

## 🌐 Localization

By default date picker uses english locale. And at the moment there is only few (`cs`, `de`, `en`, `id`, `sk`) locales available
By default date picker uses english locale. And at the moment there is only few (`cs`, `de`, `en`, `fa`, `id`, `sk`) locales available
(PRs for additional locales are more than welcome).

So if you want to change it to german (or other locale in the future), use this:
Expand Down
15 changes: 15 additions & 0 deletions src/lib/i18n/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,21 @@ export const es = {
backToDate: 'Regresar al calendario'
}

// Persian (Farsi) translation by sadegh19b
export const fa = {
days: ['یکشنبه', 'دوشنبه', 'سه‌شنبه‌', 'چهارشنبه', 'پنج‌شنبه', 'جمعه', 'شنبه', 'یکشنبه'],
daysShort: ['یکش', 'دوش', 'سه‌ش', 'چهار', 'پنج', 'جمع', 'شنب', 'یکش'],
daysMin: ['یک', 'دو', 'سه', 'چا', 'پن', 'جم', 'شن', 'یک'],
months: ['ژانویه', 'فوریه', 'مارس', 'آپریل', 'می', 'ژوئن', 'جولای', 'آگوست', 'سپتامبر', 'اکتبر', 'نوامبر', 'دسامبر'],
monthsShort: ['ژان', 'فور', 'مار', 'آپر', 'می', 'ژو', 'جول', 'آگو', 'سپت', 'اکت', 'نوا', 'دسا'],
meridiem: ['ق.ض', 'ب.ض'],
suffix: ['st', 'nd', 'rd', 'th'],
todayBtn: 'امروز',
clearBtn: 'پاک‌کردن',
timeView: 'نمایش بخش زمان',
backToDate: 'بازگشت به بخش تقویم'
}

// Indonesian translation
export const id = {
days: ['Minggu', 'Senin', 'Selasa', 'Rabu', 'Kamis', 'Jumat', 'Sabtu', 'Minggu'],
Expand Down

0 comments on commit 5746236

Please sign in to comment.