Skip to content

Instantly share code, notes, and snippets.

@bezysoftware
Last active September 6, 2018 09:44
Show Gist options
  • Select an option

  • Save bezysoftware/b878461a89a77981ee79ec1a5343261c to your computer and use it in GitHub Desktop.

Select an option

Save bezysoftware/b878461a89a77981ee79ec1a5343261c to your computer and use it in GitHub Desktop.
Strings plural usage in Kotlin
val count = getNumberOfOrangesAvailable()
val orangesFound = resources.getQuantityString(R.plurals.numberOfOrangesAvailable, count, count)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment