Angular localization display key completion
已回答
I'm currently using IntelliJ IDEA Ultimate (EAP 2018.3 , but this is applicable for non EAP versions I think )
Is there a way to , while developing Java/Angular app to have auto completion, and go to ( with Ctrl+Click) into translation display keys ?
For example I have :
<mat-error *ngIf="formStartQuote.controls.postal.hasError('unavailable')">
{{'app.quote.product.unavailable'|translate:{postal: formStartQuote.controls.postal.value} }}
</mat-error>
And I would like to first have possibility to go into 'app.quote.product.unavailable' key which will take me to language .json files, and have come context help when typing in those translation keys
As extra twist if mentioned json translation file is nested JSON object like :
{
"app": {
"quote": {
"product": {
"unavailable": "Unfortunately product is unavailable for postal code {{postal}}"
}
}
}
}
Is it possible ? Just like there similar behaviour for java and it is resource bundles (editing-resource-bundle)
请先登录再写评论。
It's not supported at the moment, feature request is welcome at https://youtrack.jetbrains.com/issues/WEB, thank you.