Skip to content
Snippets Groups Projects
Commit a104587c authored by Kocher, Manuel's avatar Kocher, Manuel
Browse files

Include example of link rendering with translations into toolkit-showcase

parent 088dc52c
No related branches found
No related tags found
No related merge requests found
Pipeline #127785 passed
...@@ -303,6 +303,7 @@ html { ...@@ -303,6 +303,7 @@ html {
</div> </div>
<div class="control" id="dbp-translation-demo"> <div class="control" id="dbp-translation-demo">
<dbp-translation key="toolkit-showcase" subscribe="lang, lang-files"></dbp-translation> <dbp-translation key="toolkit-showcase" subscribe="lang, lang-files"></dbp-translation>
<dbp-translation key="toolkit-showcase-link" var='{"link1": "https://www.i18next.com/translation-function/interpolation"}' subscribe="lang, lang-files" unsafe></dbp-translation>
</div> </div>
</div> </div>
</section> </section>
......
{ {
"toolkit-showcase": "Dieser Text wird mithilfe von i18n aus einer benutzerdefinierten Sprachdatei gelesen und ins Englische übersetzt wenn man die Sprache auf Englisch stellt." "toolkit-showcase": "Dieser Text wird mithilfe von i18n aus einer benutzerdefinierten Sprachdatei gelesen und ins Englische übersetzt wenn man die Sprache auf Englisch stellt.",
"toolkit-showcase-link": "Es können sogar links mittels <a href=\"{{- link1}}\">interpolation</a> und escaping dargestellt werden."
} }
{ {
"toolkit-showcase": "This text will be translated to german using i18n with a user defined language file when the language is changed to german." "toolkit-showcase": "This text will be translated to german using i18n with a user defined language file when the language is changed to german.",
"toolkit-showcase-link": "Furthermore its possible to display links through <a href=\"{{- link1}}\">interpolation</a> and escaping."
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment