angular-translate / angular-translate/grunt-angular-translate

Support the translate-namespace directive

Open
#78 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
90
Forks
49
PR merge metrics
No merged PRs in 30d

Description

Namespaces are supported by grunt-angular-translate, but not the https://angular-translate.github.io/docs/#/api/pascalprecht.translate.directive:translateNamespace directive. The `translate-namespace` directive allows a developer to avoid repeating the namespace in a view by extracting it to a parent element.

That is, given the following example:

```



.TITLE


.WELCOME



COMMON.FIRST_LINE

```

Expected:

```
{
"CONTENT": {
"HEADERS": {
"TITLE": "",
"WELCOME": ""
}
}
"COMMON": {
"FIRST_LINE": ""
}
}
```

Actual:

```
{
"0": {
"TITLE": "",
"WELCOME": ""
}
"COMMON": {
"FIRST_LINE": ""
}
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.