Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit 1827842

Browse files
itayarielygabskoro
authored andcommitted
hebrew and rtl language support added
1 parent 9e27ef7 commit 1827842

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Gem to add cookie consent to rails application
2020
* French
2121
* German
2222
* Greek
23+
* Hebrew
2324
* Hungarian
2425
* Italian
2526
* Norwegian

app/views/cookies_eu/_consent_banner.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<% if cookies && cookies['cookie_eu_consented'] != 'true' %>
2-
<div class="cookies-eu js-cookies-eu">
2+
<div class="cookies-eu js-cookies-eu" <%= "dir=rtl" if I18n.exists?('cookies_eu.direction', I18n.locale) && I18n.t("cookies_eu.direction") == "rtl" %>>
33
<span class="cookies-eu-content-holder"><%= t('cookies_eu.cookies_text') %></span>
44
<span class="cookies-eu-button-holder">
55
<button class="cookies-eu-ok js-cookies-eu-ok"> <%= t('cookies_eu.ok') %> </button>

config/locales/he.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
he:
2+
cookies_eu:
3+
cookies_text: "העוגיות עוזרות לנו לספק את שירותינו. על ידי השימוש בשירותים שלנו אתה מסכים לשימוש שלנו בעוגיות."
4+
learn_more: "למד/י עוד"
5+
ok: "בסדר"
6+
direction: "rtl"

lib/cookies_eu/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module CookiesEu
2-
VERSION = "1.7.6"
2+
VERSION = "1.7.7"
33
end

0 commit comments

Comments
 (0)