import * as i18next from 'i18next'; // https://github.com/nimbusec-oss/inferno-i18next/blob/master/tests/T.test.js#L66 const resources = { en: { translation: { subscribed_to_communities:'Subscribed to <1>communities', create_a_community: 'Create a community', trending_communities:'Trending <1>communities', edit: 'edit', number_of_users:'{{count}} Users', number_of_posts:'{{count}} Posts', number_of_comments:'{{count}} Comments', modlog: 'Modlog', admins: 'admins', powered_by: 'Powered by', landing_0: 'Lemmy is a <1>link aggregator / reddit alternative, intended to work in the <2>fediverse.<3>Its self-hostable, has live-updating comment threads, and is tiny (<4>~80kB). Federation into the ActivityPub network is on the roadmap. <5>This is a <6>very early beta version, and a lot of features are currently broken or missing. <7>Suggest new features or report bugs <8>here.<9>Made with <10>Rust, <11>Actix, <12>Inferno, <13>Typescript.', 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 };