Search code examples
angularjswebstormangular-translate

Link angular-translate locale string to translation file?


WebStorm is able to go to specific declarations of angular components by CTRL + Click. For example with mdVirtualRepeatContainer:

enter image description here

It would be nice, if there is a way to jump this way to the declaration of angular-translate locales like:

{{ 'myApp.title' | translate }}

CTRL + Click on myApp.title and go to:

//assets/locales/myApp/en.json
{
  "myApp": {
    "title": "this is the title, I want to go to"
  }
}

My question

Is there a way to tell WebStorm that everything piped to translate can potentially be found under assets/locales/?


Solution

  • There is no such feature in WebStorm; related feature request: https://youtrack.jetbrains.com/issue/WEB-28258. It's unlikely that it will ever be included, but it is indeed a good idea for custom plugin