import * as i18next from 'i18next'; const resources = { en: { translation: { trending: 'NO', subscribed_to_communities:'Subscribed to <1>communities', create_a_community: 'Create a community', foo: 'foo', bar: '<1>bar', baz: '<1>{{count}}', qux: 'qux<1>', qux_plural: 'quxes<1>', quux: '<1>{{name, uppercase}}', userMessagesUnread: 'Hello <1>{{name}}, you have {{count}} unread messages. <3>Go to messages.', userMessagesUnread_plural: 'Hello <1>{{name}}, you have {{count}} unread messages. <3>Go to messages.' }, }, }; function format(value: any, format: any, lng: any) { if (format === 'uppercase') return value.toUpperCase(); return value; } i18next.init({ lng: 'en', resources, interpolation: { format: format } }); export { i18next, resources };