Returned the value for the key or the default
Null-safe implementation is preferred by using Option.
Null-safe implementation is preferred by using Option. The caller can support default value by using getOrElse: messages.get("hello").getOrElse("world")
The return value can also be used with format: messages.get("hello %d").map(_.format(5))
To return the string itself: messages("hello")
The key to find the message for
Return the value for the key or fall back to the provided default