Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localize not working #108

Open
vincentcordel opened this issue Jul 1, 2016 · 1 comment
Open

Localize not working #108

vincentcordel opened this issue Jul 1, 2016 · 1 comment

Comments

@vincentcordel
Copy link

vincentcordel commented Jul 1, 2016

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
@vincentcordel vincentcordel changed the title Localize gives "Unexpected identifier" error Localize not working Jul 1, 2016
@Frank004
Copy link

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"]
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants