Add Hebrew locale support

This commit is contained in:
Eduardo 2019-09-28 15:36:31 +02:00
parent 0a10126d1d
commit 92711fa35d
5 changed files with 5 additions and 4 deletions

View file

@ -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) * Brazilian portuguese by [pedrinholula](https://github.com/pedrinholula)
* Russian by [stereohorse](https://github.com/stereohorse) * Russian by [stereohorse](https://github.com/stereohorse)
* Kyrgyz by [januchaos](https://github.com/januchaos) * Kyrgyz by [januchaos](https://github.com/januchaos)
* Hebrew by [cohen604](https://github.com/cohen604)
## Theme tested ## Theme tested

View file

@ -54,5 +54,5 @@
"desktop": "assets/screenshot-desktop.jpg", "desktop": "assets/screenshot-desktop.jpg",
"mobile": "assets/screenshot-mobile.jpg" "mobile": "assets/screenshot-mobile.jpg"
}, },
"version": "0.4.0" "version": "0.4.1"
} }

View file

@ -6,7 +6,7 @@ import GhostContentAPI from '@tryghost/content-api'
import Fuse from 'fuse.js' import Fuse from 'fuse.js'
$(document).ready(() => { $(document).ready(() => {
const isRTL = $('html').attr('lang') === 'ar' const isRTL = $('html').attr('lang') === 'ar' || $('html').attr('lang') === 'he'
if (isRTL) { if (isRTL) {
$('html').attr('dir', 'rtl').addClass('rtl') $('html').attr('dir', 'rtl').addClass('rtl')

View file

@ -2,7 +2,7 @@ import $ from 'jquery'
import slick from 'slick-carousel' import slick from 'slick-carousel'
$(document).ready(() => { $(document).ready(() => {
const isRTL = $('html').attr('lang') === 'ar' const isRTL = $('html').attr('lang') === 'ar' || $('html').attr('lang') === 'he'
const $featuredArticles = $('.js-featured-articles') const $featuredArticles = $('.js-featured-articles')
if ($featuredArticles.length > 0) { if ($featuredArticles.length > 0) {

View file

@ -102,7 +102,7 @@ function prepareProgressCircle() {
} }
$(document).ready(() => { $(document).ready(() => {
const isRTL = $('html').attr('lang') === 'ar' const isRTL = $('html').attr('lang') === 'ar' || $('html').attr('lang') === 'he'
$aosWrapper = $('.js-aos-wrapper') $aosWrapper = $('.js-aos-wrapper')
const $scrollButton = $('.js-scrolltop') const $scrollButton = $('.js-scrolltop')