Permalink
Browse files

README: Info about msg with arguments

- added example
  • Loading branch information...
1 parent 9734374 commit f851624b2ca63ffc587a8d8a193337efe307a674 Jakub Holy committed May 21, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 README.md
View
2 README.md
@@ -49,6 +49,7 @@ The `make-t` fn handles translations. You give it a config map which includes yo
:inline-markdown "<tag>**strong**</tag>"
:block-markdown* "<tag>**strong**</tag>"
:with-exclaim! "<tag>**strong**</tag>"
+ :with-arguments "Num %d = %s"
:greeting-alias :example/greeting
:baz-alias :example.bar/baz}
:missing "|Missing translation: [%1$s %2$s %3$s]|"}
@@ -75,6 +76,7 @@ The `make-t` fn handles translations. You give it a config map which includes yo
(t :en :example/inline-markdown) => "&lt;tag&gt;<strong>strong</strong>&lt;/tag&gt;"
(t :en :example/block-markdown) => "<p>&lt;tag&gt;<strong>strong</strong>&lt;/tag&gt;</p>" ; Notice no "*" suffix here, only in dictionary map
(t :en :example/with-exclaim) => "<tag>**strong**</tag>" ; Notice no "!" suffix here, only in dictionary map
+(t :en :example/with-arguments 42 "forty two") => "Num 42 = forty two"
```
It's simple to get started, but there's a number of advanced features for if/when you need them:

0 comments on commit f851624

Please sign in to comment.