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

i18n Lazy Loading not working #71

Open
khant14 opened this issue Mar 20, 2015 · 2 comments
Open

i18n Lazy Loading not working #71

khant14 opened this issue Mar 20, 2015 · 2 comments

Comments

@khant14
Copy link

khant14 commented Mar 20, 2015

Hello, I am using dashing on a project that requires lazy loading on translations. For example, I am trying to load "HI" using t ('.hello') in the dashboard view file.
Doing this returns this error: "Cannot use t(".hello") shortcut because path is not available"

I have tested lazy loading in my project in other controllers and views that I generated, and it works fine.
I am not sure what I can do to make lazy loading work with the Dashing views. It would be great if anyone can post some suggestions.

Thank you

Here is my en.yml file structure
en:
application:
hello: "HI"

testing:
create:
hello: "HI"

dashing:
dashboards:
sample:
hello: "HI"

@gottfrois
Copy link
Owner

This is probably because i need to load the helper path in the engine. I'll have to have a closer look to this

@gottfrois
Copy link
Owner

Have you tried calling I18n.t instead?

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

No branches or pull requests

2 participants