rapture icon indicating copy to clipboard operation
rapture copied to clipboard

Google Translate only provides suggestions when there is a single language defined.

Open ShaneDelmore opened this issue 8 years ago • 1 comments

import rapture.i18n._ import googleTranslate._ implicit val apiKey = GoogleApiKey("YouReallyNeedOneOfTheseToTestThis")

type AppLangs = En with Fr with Es type IString = I18n[String, AppLangs]

val greeting: IString = en"Hello" //Compile time assistance for es and fr translations are provided val greeting2: IString = en"Hello" & fr"Bonjour" //no es translation is provided

This could be a common use case, as in an app supporting 3 languages adds a 4th and no longer gets the translation support they did when they first started adding new languages.

ShaneDelmore avatar Mar 12 '16 22:03 ShaneDelmore

This definitely used to work. I'll try to work out what's changed...

propensive avatar Mar 14 '16 19:03 propensive