PascalPrecht/angular-translate — pull request #347 by knalli (2014-02-09 20:12:11+00:00)
Title: feat(): add an option for post processing compiling

Finally. :fireworks:

Using the optional directive attribute `translate-compile`, the result of a translation will be recompiled.

For example:

```json
{
'text': '{{name}} is a citizen of !'
}
```

```html

```

this will result into (given a scope variable `world = 'Gallifrey'` the element text `The Doctor is a citizen of Gallifrey!` respectively in the corresponding HTML.

Ensuring backwards compatibility, this feature is not enabled globally. This feature can be enabled via `$translateProvider.usePostCompiling(true)` and read with `$translate.isPostCompilingEnabled()`. You can also disable locally the global feature.

1. if `$translate.isPostCompilingEnabled() === false`: use `translate-compile` within a directive to enable it locally.
2. if `$translate.isPostCompilingEnabled() === true`: use `translate-compile="false"` within a directive to disable it locally.