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 /package.json | |
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 'package.json')
-rw-r--r-- | package.json | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package.json b/package.json index 0eff4ca..ee81682 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "postcss": "^8.2.10", "postcss-cli": "^8.3.1", "postcss-import": "^14.0.1", - "tailwindcss": "^2.0.4" + "tailwindcss": "^2.0.4", + "tailwindcss-rtl": "^0.8.0" }, "browserslist": [ "last 1 version", |