Internationalization stuff
Utility for variable replacement in translation.
raw : String
raw =
"Hello my name is '{firstName}, {lastName}'"
result =
raw
|> R10.I18n.replace [ ( "{firstName}", "foo" ), ( "{lastName}", "bar" ) ]
-- result == "Hello my name is 'foo, bar'"Shorthand to transform a translation into an Element.text
Translate some text