Skip to content

Instantly share code, notes, and snippets.

@gabro
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabro/aa395aa1d919286cd45b to your computer and use it in GitHub Desktop.
Save gabro/aa395aa1d919286cd45b to your computer and use it in GitHub Desktop.
rapture-i18n + ICU
object Messages {
type IString = I18nString[En with It]
val cart: IString = en"Shopping cart" | it"Carrello"
val login: IString = en"Login" | it"Accedi"
val betReplayedBy: IString =
en"""
Ticket replayed by {n, plural,
=0 {no other players}
one {1 other player}
others {{n} other player}}
""" |
it"""
Schedina rigiocata da {n, plural,
=0 {nessun altro giocatore}
one {un altro giocatore}
others {{n} altri giocatori}}
"""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment