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

Allow relativ keys for nested views #11

Open
hqm42 opened this issue Jul 9, 2015 · 2 comments
Open

Allow relativ keys for nested views #11

hqm42 opened this issue Jul 9, 2015 · 2 comments

Comments

@hqm42
Copy link

hqm42 commented Jul 9, 2015

I tried to add relative translations for my view in app/views/admin/users/index.html.erb but instead of admin.users.index i got users.index for a key.

@mauriciopasquier
Copy link

Yeah, I hit this issue too. It seems for a string title inside a file index.html.erb in this path app/views/<ignored>/<last_dir>/index.html.erb it generates:

en:
  last_dir:
    index:
      title: 'title'

but Rails (4.2.8 at least) would try to load:

en:
  ignored:
    last_dir:
      index:
        title: 'title'

PD: @stefanoverna: I'm so grateful for this plugin! You can't imagine how much time you saved me <3

@griffinqiu
Copy link

I have the some issue. T_T

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

3 participants