I've just released a first version of Rapture I18N which provides a very simple API for working with internationalized strings, i.e. a single value which represents strings in a number of different languages, for example:
val greeting = en"Hello" | fr"Bonjour" | de"Guten Tag"
Types are used to enforce all required languages are present, so missing language strings always manifest themselves as type errors at compile time. Full details and instructions for use are on the Rapture I18N Github page:
A few simple tests are available in the rapture-i18n-test project:
Rapture I18N is available for Scala 2.10 and 2.11 on Maven Central, and can be included in an SBT project by including the line:
Many thanks to Christopher Vogt for the inspiration for the idea.
Cheers, Jon @propensive
You received this message because you are subscribed to the Google Groups "scala-announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.