Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Internationalization in MvvmCross

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.

Internationalization in MvvmCross

Avatar for Stuart Lodge

Stuart Lodge

May 14, 2013
Tweet

More Decks by Stuart Lodge

Other Decks in Technology

Transcript

  1. 3 ways to i18n Text… 1. Use MS/Xamarin way –

    .Resx files (possibly with Rdio/Vernacular) and then XAML and code… 2. Use MvvmCross way – Json 3. Build your own (maybe on top of 1 or 2)
  2. The MvvmCross way • Use the JsonLocalisation Plugin – (which

    requires the ResourceLoader Plugin) • Text is linked to ViewModels
  3. Some set up required… • TextProviderBuilder/TextProvider in App • TextSources

    in ViewModels – Add SharedTextSources if required • ValueConverter in Setup* * Hopefully gone soon
  4. Build Actions • Droid – AndroidAsset • Touch – Content

    • Windows – Content • Or… write some code to use EmbeddedResources inside the Core PCL!