diff options
author | Rami Sabbagh <ramilego4game@gmail.com> | 2022-01-26 05:15:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-26 05:15:02 +0300 |
commit | 086f1e98c193943010f7e3b7889b8f2d0ac4e57b (patch) | |
tree | 34525ef019f6766be206c1bf48c5883f1ace1bbb /i18n | |
parent | 9c3d6160dbf9ce9a4556d2746df4e105403e3d20 (diff) |
feat: add RTL layout support and Arabic localization (#159)
* Add direction attribute to the <html> tag
So rtl layout can be activated
* Add `tailwindcss-rtl`
Which brings very handy RTL support to Tailwind CSS
* Load the `tailwindcss-rtl` plugin
* Find and replace many classes into RTL capable ones
* Find and replace many classes into RTL capable ones
* Update the prebuilt css
* Add Arabic localization
* Fix code blocks, force their layout to LTR
* Update the prebuilt css
* Minor improvement to the Arabic localization
* Add singular/plural support for `readingTime`
By following [hugo docs](https://gohugo.io/content-management/multilingual/#query-a-singularplural-translation)
* Add a singular form of `readingTime` for Arabic
* Add a singular form of `readingTime` for English
* Add an additional variant for `readingTime` in the Arabic localization
In Arabic we have a plural for dual, and a plural for 3+.
* Fix left and right arrows not being flipped in RTL
I had to manually flip them in each place
* Revert "Add a singular form of `readingTime` for English"
This reverts commit 73482b600ed7da5fb37b2b5f7d88384a32de18b1.
* Add singular variant for `readingTime` in EN localization
Diffstat (limited to 'i18n')
-rw-r--r-- | i18n/ar.yaml | 28 | ||||
-rw-r--r-- | i18n/de.yaml | 2 | ||||
-rw-r--r-- | i18n/en.yaml | 3 | ||||
-rw-r--r-- | i18n/es.yaml | 2 | ||||
-rw-r--r-- | i18n/fr.yaml | 2 | ||||
-rw-r--r-- | i18n/it.yaml | 2 | ||||
-rw-r--r-- | i18n/jp.yaml | 2 | ||||
-rw-r--r-- | i18n/ko.yaml | 2 | ||||
-rw-r--r-- | i18n/pl.yaml | 2 | ||||
-rw-r--r-- | i18n/ru.yaml | 2 | ||||
-rw-r--r-- | i18n/zh-Hant.yaml | 2 | ||||
-rw-r--r-- | i18n/zh.yaml | 2 |
12 files changed, 40 insertions, 11 deletions
diff --git a/i18n/ar.yaml b/i18n/ar.yaml new file mode 100644 index 0000000..806d246 --- /dev/null +++ b/i18n/ar.yaml @@ -0,0 +1,28 @@ +readMore: + other: اقرأ المزيد +readingTime: + one: دقيقة من القراءة + two: دقيقتان من القراءة + other: '{{ .Count }} دقائق من القراءة' +toc: + other: لائحة المحتوى +seriesOfPosts: + other: سلسلة من المنشورات +previous: + other: السابق +next: + other: التالي +seeAlso: + other: انظر أيضاً +recent: + other: جديد +onThisPage: + other: على هذه الصفحة +editThisPage: + other: عدّل هذه الصفحة +light: + other: مضيئ +dark: + other: مظلم +auto: + other: تلقائي diff --git a/i18n/de.yaml b/i18n/de.yaml index a4de6e0..59c28f1 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -1,7 +1,7 @@ readMore: other: Mehr erfahren readingTime: - other: 'Lesezeit: {{ .ReadingTime }} min' + other: 'Lesezeit: {{ .Count }} min' toc: other: Inhaltsverzeichnis seriesOfPosts: diff --git a/i18n/en.yaml b/i18n/en.yaml index 5046dc7..16037ba 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -1,7 +1,8 @@ readMore: other: Read More readingTime: - other: '{{ .ReadingTime }} min read' + other: '{{ .Count }} mins read' + one: '1 min read' toc: other: Table of Contents seriesOfPosts: diff --git a/i18n/es.yaml b/i18n/es.yaml index 7e305c8..109c7d1 100644 --- a/i18n/es.yaml +++ b/i18n/es.yaml @@ -1,7 +1,7 @@ readMore: other: Leer más readingTime: - other: '{{ .ReadingTime }} minutos de lectura' + other: '{{ .Count }} minutos de lectura' toc: other: Tabla de Contenidos seriesOfPosts: diff --git a/i18n/fr.yaml b/i18n/fr.yaml index 0c0a7aa..1958b3d 100644 --- a/i18n/fr.yaml +++ b/i18n/fr.yaml @@ -1,7 +1,7 @@ readMore: other: En savoir plus readingTime: - other: '{{ .ReadingTime }} min de lecture' + other: '{{ .Count }} min de lecture' toc: other: Table des matières seriesOfPosts: diff --git a/i18n/it.yaml b/i18n/it.yaml index 56ad801..1aaea1c 100644 --- a/i18n/it.yaml +++ b/i18n/it.yaml @@ -1,7 +1,7 @@ readMore: other: Leggi di più readingTime: - other: '{{ .ReadingTime }} min' + other: '{{ .Count }} min' toc: other: Indice dei Contenuti seriesOfPosts: diff --git a/i18n/jp.yaml b/i18n/jp.yaml index 74a11b7..f7a3640 100644 --- a/i18n/jp.yaml +++ b/i18n/jp.yaml @@ -1,7 +1,7 @@ readMore: other: 続きを読む readingTime: - other: '{{ .ReadingTime }}分読む' + other: '{{ .Count }}分読む' toc: other: 目次 seriesOfPosts: diff --git a/i18n/ko.yaml b/i18n/ko.yaml index 25fd479..96a0b68 100644 --- a/i18n/ko.yaml +++ b/i18n/ko.yaml @@ -1,7 +1,7 @@ readMore: other: 더 보기 readingTime: - other: "{{ .ReadingTime }} min 읽음" + other: "{{ .Count }} min 읽음" toc: other: 목차 seriesOfPosts: diff --git a/i18n/pl.yaml b/i18n/pl.yaml index 94e74e1..8d6b76e 100644 --- a/i18n/pl.yaml +++ b/i18n/pl.yaml @@ -1,7 +1,7 @@ readMore: other: Czytaj więcej readingTime: - other: '{{ .ReadingTime }} min czytania' + other: '{{ .Count }} min czytania' toc: other: Spis treści seriesOfPosts: diff --git a/i18n/ru.yaml b/i18n/ru.yaml index 6c7cdc7..d23d16e 100644 --- a/i18n/ru.yaml +++ b/i18n/ru.yaml @@ -1,7 +1,7 @@ readMore: other: Читать далее readingTime: - other: '{{ .ReadingTime }} мин. чтения' + other: '{{ .Count }} мин. чтения' toc: other: Содержание seriesOfPosts: diff --git a/i18n/zh-Hant.yaml b/i18n/zh-Hant.yaml index 12d63f0..10908f8 100644 --- a/i18n/zh-Hant.yaml +++ b/i18n/zh-Hant.yaml @@ -1,7 +1,7 @@ readMore: other: 閱讀更多 readingTime: - other: '{{ .ReadingTime }}分鐘閱讀' + other: '{{ .Count }}分鐘閱讀' toc: other: 目錄 seriesOfPosts: diff --git a/i18n/zh.yaml b/i18n/zh.yaml index dd87eb8..c92d67c 100644 --- a/i18n/zh.yaml +++ b/i18n/zh.yaml @@ -1,7 +1,7 @@ readMore: other: 阅读更多 readingTime: - other: '{{ .ReadingTime }}分钟阅读时长' + other: '{{ .Count }}分钟阅读时长' toc: other: 目录 seriesOfPosts: |