diff options
Diffstat (limited to 'doc/development/i18n/externalization.md')
-rw-r--r-- | doc/development/i18n/externalization.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/development/i18n/externalization.md b/doc/development/i18n/externalization.md index fb1de592a79..c0ce49eb40b 100644 --- a/doc/development/i18n/externalization.md +++ b/doc/development/i18n/externalization.md @@ -226,14 +226,14 @@ For instance, the following ```js {{ s__("mrWidget|Set by") }} -<mr-widget-author :author="mr.setToMWPSBy" /> +{{ author.name }} {{ s__("mrWidget|to be merged automatically when the pipeline succeeds") }} ``` should be externalized as follows: ```js -{{ sprintf(s__("mrWidget|Set by %{author} to be merged automatically when the pipeline succeeds"), { author: '<mr-widget-author :author="mr.setToMWPSBy" />' }) }} +{{ sprintf(s__("mrWidget|Set by %{author} to be merged automatically when the pipeline succeeds"), { author: author.name }) }} ``` When in doubt, try to follow the best practices described in this [Mozilla |