1
0
Fork 0
mirror of https://github.com/infinum/cookies_eu synced 2023-03-27 23:21:16 -04:00

hebrew and rtl language support added

This commit is contained in:
Itay 2020-01-21 08:04:45 +02:00 committed by Gabrijel Škoro
parent 9e27ef7295
commit 1827842c03
4 changed files with 9 additions and 2 deletions

View file

@ -20,6 +20,7 @@ Gem to add cookie consent to rails application
* French
* German
* Greek
* Hebrew
* Hungarian
* Italian
* Norwegian

View file

@ -1,5 +1,5 @@
<% if cookies && cookies['cookie_eu_consented'] != 'true' %>
<div class="cookies-eu js-cookies-eu">
<div class="cookies-eu js-cookies-eu" <%= "dir=rtl" if I18n.exists?('cookies_eu.direction', I18n.locale) && I18n.t("cookies_eu.direction") == "rtl" %>>
<span class="cookies-eu-content-holder"><%= t('cookies_eu.cookies_text') %></span>
<span class="cookies-eu-button-holder">
<button class="cookies-eu-ok js-cookies-eu-ok"> <%= t('cookies_eu.ok') %> </button>

6
config/locales/he.yml Normal file
View file

@ -0,0 +1,6 @@
he:
cookies_eu:
cookies_text: "העוגיות עוזרות לנו לספק את שירותינו. על ידי השימוש בשירותים שלנו אתה מסכים לשימוש שלנו בעוגיות."
learn_more: "למד/י עוד"
ok: "בסדר"
direction: "rtl"

View file

@ -1,3 +1,3 @@
module CookiesEu
VERSION = "1.7.6"
VERSION = "1.7.7"
end