Skip to content

Instantly share code, notes, and snippets.

@kartikarora
Created April 19, 2023 05:36
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 kartikarora/5614015591e0759a21b6992593252580 to your computer and use it in GitHub Desktop.
Save kartikarora/5614015591e0759a21b6992593252580 to your computer and use it in GitHub Desktop.
// Get GrammaticalInflectionManager system service
val grammaticalInflectionManager = context.getSystemService(GrammaticalInflectionManager::class.java)
/**
* Use service to get inflection of the app
* Will be one of
* Configuration.GRAMMATICAL_GENDER_NEUTRAL
* Configuration.GRAMMATICAL_GENDER_FEMININE
* Configuration.GRAMMATICAL_GENDER_MASCULINE
*/
grammaticalInflectionManager.getApplicationGrammaticalGender()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment