Skip to content

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

Open

Description

@JoeHarstad

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.

Activity

  1. rubenv commented on Nov 15, 2017

    @rubenv
    Owner

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions