String interpolation in elm

Checking to see if string interpolation is supported in elm. I see this github issue (which is closed) - , but not sure if this has been implemented. If not, what are the plans?


I often join lists instead: :slight_smile:

String.join " " 
   ["You have"
   , count
   , "unread messages"
or inline:
String.concat [ "You have ", count, " unread messages" ]

I asked this to handle internationalized strings that have substituted params like
“Say hello to {0}”. I need to evaluate this string substituting the index parameter with the name. I found “lukewestby/elm-string-interpolate” to do this for now

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.