Contents

inflectionAlternative

The alternative translation for a string when no suitable inflection exists.

Declaration

static let inflectionAlternative: NSAttributedString.Key

Discussion

In languages that change the form of words to match someone’s gender, the system can automatically change (or inflect) the gender to match someone’s personal preferences. If a suitable inflection doesn’t exist, the system uses the value of this attribute instead. Add this attribute to specify a suitable translation that applies to anyone. For example, if a language has only masculine and feminine genders, specify an appropriately neutral translation of the text.

The value of this key is an NSString with the replacement phrase to use.

See Also

Getting translation-related attribute keys