From 92711fa35d09a7f484070424c9d1948285021dce Mon Sep 17 00:00:00 2001 From: Eduardo Date: Sat, 28 Sep 2019 15:36:31 +0200 Subject: [PATCH] Add Hebrew locale support --- README.md | 1 + package.json | 2 +- src/js/app.js | 2 +- src/js/home.js | 2 +- src/js/post.js | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b4b9f8b..3a64ab8 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,7 @@ To get the latest version please head over the [releases page](https://github.co * Brazilian portuguese by [pedrinholula](https://github.com/pedrinholula) * Russian by [stereohorse](https://github.com/stereohorse) * Kyrgyz by [januchaos](https://github.com/januchaos) +* Hebrew by [cohen604](https://github.com/cohen604) ## Theme tested diff --git a/package.json b/package.json index 1c96317..db0569a 100644 --- a/package.json +++ b/package.json @@ -54,5 +54,5 @@ "desktop": "assets/screenshot-desktop.jpg", "mobile": "assets/screenshot-mobile.jpg" }, - "version": "0.4.0" + "version": "0.4.1" } diff --git a/src/js/app.js b/src/js/app.js index 1464e47..d83cd20 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -6,7 +6,7 @@ import GhostContentAPI from '@tryghost/content-api' import Fuse from 'fuse.js' $(document).ready(() => { - const isRTL = $('html').attr('lang') === 'ar' + const isRTL = $('html').attr('lang') === 'ar' || $('html').attr('lang') === 'he' if (isRTL) { $('html').attr('dir', 'rtl').addClass('rtl') diff --git a/src/js/home.js b/src/js/home.js index 4d48259..00b3575 100644 --- a/src/js/home.js +++ b/src/js/home.js @@ -2,7 +2,7 @@ import $ from 'jquery' import slick from 'slick-carousel' $(document).ready(() => { - const isRTL = $('html').attr('lang') === 'ar' + const isRTL = $('html').attr('lang') === 'ar' || $('html').attr('lang') === 'he' const $featuredArticles = $('.js-featured-articles') if ($featuredArticles.length > 0) { diff --git a/src/js/post.js b/src/js/post.js index 8924660..65b5eb4 100644 --- a/src/js/post.js +++ b/src/js/post.js @@ -102,7 +102,7 @@ function prepareProgressCircle() { } $(document).ready(() => { - const isRTL = $('html').attr('lang') === 'ar' + const isRTL = $('html').attr('lang') === 'ar' || $('html').attr('lang') === 'he' $aosWrapper = $('.js-aos-wrapper') const $scrollButton = $('.js-scrolltop')