Skip to content

I18n "lazy" lookup is not supported. #8

Description

@nagyt234

In the case of I18n "lazy" lookup missing_t treats it as missing translation and generates yaml with missing key. E.g. the following code in app/views/transmittals/index.html.erb uses "lazy" lookup :

<th><%= sort_link @search, :transmitted_at, t('.transmitted_at') %></th>

Starting missing_t it outputs the following, what is wrong:

en:
  :
    transmitted_at:

However config/locales/en.yml contains the following lines:

en:
...
  transmittals:
    index:
      transmitted_at: "Sent"

See http://guides.rubyonrails.org/i18n.html#lazy-lookup about I18n "lazy" lookup.

Activity

  1. balinterdi commented on Apr 21, 2015

    @balinterdi
    Owner

    @nagyt234 Could you submit a failing test case and a fix that handles lazy loading? I haven't had the time to get to this and will probably not have it for some time to come.

  2. wstrinz commented on Jul 22, 2015

    @wstrinz

    @balinterdi looks like TomK32's fork added this feature: TomK32@ad6a9b2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions