mirror of
https://github.com/kataras/iris.git
synced 2026-01-08 20:41:57 +00:00
New: i18n pluralization and variables support and more...
fixes: #1649, #1648, #1641, #1650 relative to: #1597
This commit is contained in:
13
_examples/i18n/basic/views/index.html
Normal file
13
_examples/i18n/basic/views/index.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<h3>Test translate current locale template function <i>[dynamic]</i> ("word", arguments...) <br/> <code>call .tr "hi" "iris"</code></h3>
|
||||
|
||||
{{call .tr "hi" "iris"}}
|
||||
|
||||
<hr/>
|
||||
|
||||
<h3>Test translate of any language template function <i>[static]</i> ("language", "word", arguments...) <br/> <code>tr "zh-CN" "hi" "iris"</code></h3>
|
||||
|
||||
{{tr "zh-CN" "hi" "iris"}}
|
||||
|
||||
<h3>Test HTML link ("word", arguments...) <br/> <code>call .trUnsafe "trUnsafe" "userProfilePublicDescription" "https://iris-go.com"</code></h3>
|
||||
|
||||
{{call .trUnsafe "userProfilePublicDescription" "https://iris-go.com"}}
|
||||
Reference in New Issue
Block a user