Localize not working
Opened this issue · 1 comments
vincentcordel commented
Hi there,
I'm trying to use the fr localization but it stays in English.
My js file has the two require:
//= require recurring_select
//= require recurring_select/fr
And my view has the following code:
<% schedule = IceCube::Schedule.new(now = Time.now) do |s|
s.add_recurrence_rule(RecurringSelect.dirty_hash_to_rule(current_user.study_frequency))
end %>
<%= t('app.dashboard.reminders_sent') %> <%= schedule.to_s.downcase %><br />
What am I missing to make it work?
Thanks!
- Vincent
Frank004 commented
for the selector I initial the js like this
$.fn.recurring_select.texts = {
locale_iso_code: "es",
repeat: "Crear Regla de Repetición (Calendario)",
frequency: "Frecuencia",
daily: "Diario",
weekly: "Semanal",
monthly: "Mensual",
yearly: "Annual",
every: "Cada",
days: "dia(s)",
weeks_on: "semana(s) on",
months: "mes(es)",
years: "año(s)",
first_day_of_week: 1,
day_of_month: "Dia del Mes",
day_of_week: "Dia de la Semana",
cancel: "Cancelar",
ok: "OK",
summary: "Frecuencia",
last_day: "Ultimo Dia",
days_first_letter: ["D", "L", "M", "Mi", "J", "V", "S"],
order: ["1ra", "2da", "3ra", "4ta", "5ta","Final"]
}