Skip to content

Instantly share code, notes, and snippets.

@kartikarora
Last active April 19, 2023 05:36
Show Gist options
  • Save kartikarora/771f1315f7fd6c2d526bdd267a0b243f to your computer and use it in GitHub Desktop.
Save kartikarora/771f1315f7fd6c2d526bdd267a0b243f to your computer and use it in GitHub Desktop.
// Get GrammaticalInflectionManager system service
val grammaticalInflectionManager = context.getSystemService(GrammaticalInflectionManager::class.java)
/**
* Use service to change the inflection of the app
* Options are
* Configuration.GRAMMATICAL_GENDER_NEUTRAL
* Configuration.GRAMMATICAL_GENDER_FEMININE
* Configuration.GRAMMATICAL_GENDER_MASCULINE
*/
grammaticalInflectionManager.setRequestedApplicationGrammaticalGender(
Configuration.GRAMMATICAL_GENDER_NEUTRAL)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment