I want initialized i18next instances to support context-specific translation lookup through t(key, options). After I create and initialize an instance with resources, calling i18n.t('friend', { context: 'male' }) should look for friend_male before the base friend key, so resources like { friend: 'friend', friend_male: 'boyfriend', friend_female: 'girlfriend' } return 'boyfriend' for the male context and 'girlfriend' for the female context. Numeric contexts should work the same way: with { step: 'step', step_1: 'first step' }, i18n.t('step', { context: 1 }) should return 'first step'.
The context separator should be configurable at init time with contextSeparator. For example, if an instance is initialized with contextSeparator: '|' and resources { friend: 'friend', 'friend|formal': 'colleague' }, then i18n.t('friend', { context: 'formal' }) should return 'colleague'.
Context lookup should also combine with plural lookup. With resources { item: 'item', item_male_one: 'his item', item_male_other: 'his items' }, i18n.t('item', { context: 'male', count: 1 }) should return 'his item', and i18n.t('item', { context: 'male', count: 2 }) should return 'his items'. If returnDetails: true is passed, the returned details should report the actual suffixed key that was used, such as exactUsedKey: 'friend_male' for the male friend example. Empty-string, null, or missing context should not trigger context suffix lookup.
The public TypeScript options should expose this API too: TOptions should accept a context option, and initialization options/type defaults should accept contextSeparator.