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

DEBUG mode doesn't apply [MISSING]: for controller translations #344

Open
JoeHarstad opened this issue Nov 10, 2017 · 1 comment
Open

DEBUG mode doesn't apply [MISSING]: for controller translations #344

JoeHarstad opened this issue Nov 10, 2017 · 1 comment

Comments

@JoeHarstad
Copy link

When you do the following in a controller...
var sometext = gettext("I am some text to translate");
...and then add that variable to an HTML template like such
<p>{{$ctrl.sometext}}</p>
There is no indication of [MISSING]: being applied to these translated strings.

@rubenv
Copy link
Owner

rubenv commented Nov 15, 2017

Try this in your HTML: <p>{{$ctrl.sometext | translate}}</p>

gettext() only marks it for extraction, it still needs to be translated later on.

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