diff --git a/i18n.md b/i18n.md index 1ff4b4c5..055ddd43 100644 --- a/i18n.md +++ b/i18n.md @@ -85,6 +85,7 @@ we can use `N_()` and `__()` in javascript sources instead of regular `angular-g There are certain aspects of using `angular-gettext` you should be aware of. * Be careful where you put the `translate` directive. For example, a markup like: + ```html
@@ -92,13 +93,16 @@ There are certain aspects of using `angular-gettext` you should be aware of.
``` -will result into the whole + +will result in the whole + ```html
Text
``` -being collected during string extraction by `gulp gettext-extract`. Correctly, the `translate` directive should be placed inside the `span` element. + +block being collected during string extraction by `gulp gettext-extract`. Correctly, the `translate` directive should be placed inside the `span` element. * Don't use dynamic content inside `__()`. For example, the following javascript code: ```javascript