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-lock.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-lock.json')
-rw-r--r-- | package-lock.json | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/package-lock.json b/package-lock.json index 1720a39..cbb8ac4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,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" } }, "node_modules/@babel/code-frame": { @@ -1747,6 +1748,12 @@ "postcss": "^8.0.9" } }, + "node_modules/tailwindcss-rtl": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/tailwindcss-rtl/-/tailwindcss-rtl-0.8.0.tgz", + "integrity": "sha512-D+iKrobvc29qAmjwh3IpA2ZrBJacg2tSED7m9doJMCqlqneb8/dK71j0An+zCZQ+pI/c+/CBcm/x7nirzPWVOA==", + "dev": true + }, "node_modules/tailwindcss/node_modules/@fullhuman/postcss-purgecss": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/@fullhuman/postcss-purgecss/-/postcss-purgecss-3.1.3.tgz", @@ -3217,6 +3224,12 @@ } } }, + "tailwindcss-rtl": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/tailwindcss-rtl/-/tailwindcss-rtl-0.8.0.tgz", + "integrity": "sha512-D+iKrobvc29qAmjwh3IpA2ZrBJacg2tSED7m9doJMCqlqneb8/dK71j0An+zCZQ+pI/c+/CBcm/x7nirzPWVOA==", + "dev": true + }, "to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", |