Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mooingcat/6acc8b9e1694eafe4f83a9968cc71684 to your computer and use it in GitHub Desktop.
Save mooingcat/6acc8b9e1694eafe4f83a9968cc71684 to your computer and use it in GitHub Desktop.
Change Robolectric locale
Shadows.shadowOf(RuntimeEnvironment.application.resources.configuration).setLocale(Locale("fr"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment