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:
parent
9e27ef7295
commit
1827842c03
4 changed files with 9 additions and 2 deletions
|
@ -20,6 +20,7 @@ Gem to add cookie consent to rails application
|
||||||
* French
|
* French
|
||||||
* German
|
* German
|
||||||
* Greek
|
* Greek
|
||||||
|
* Hebrew
|
||||||
* Hungarian
|
* Hungarian
|
||||||
* Italian
|
* Italian
|
||||||
* Norwegian
|
* Norwegian
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<% if cookies && cookies['cookie_eu_consented'] != 'true' %>
|
<% 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-content-holder"><%= t('cookies_eu.cookies_text') %></span>
|
||||||
<span class="cookies-eu-button-holder">
|
<span class="cookies-eu-button-holder">
|
||||||
<button class="cookies-eu-ok js-cookies-eu-ok"> <%= t('cookies_eu.ok') %> </button>
|
<button class="cookies-eu-ok js-cookies-eu-ok"> <%= t('cookies_eu.ok') %> </button>
|
||||||
|
|
6
config/locales/he.yml
Normal file
6
config/locales/he.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
he:
|
||||||
|
cookies_eu:
|
||||||
|
cookies_text: "העוגיות עוזרות לנו לספק את שירותינו. על ידי השימוש בשירותים שלנו אתה מסכים לשימוש שלנו בעוגיות."
|
||||||
|
learn_more: "למד/י עוד"
|
||||||
|
ok: "בסדר"
|
||||||
|
direction: "rtl"
|
|
@ -1,3 +1,3 @@
|
||||||
module CookiesEu
|
module CookiesEu
|
||||||
VERSION = "1.7.6"
|
VERSION = "1.7.7"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue