// Module mock for react-i18next: t() returns the key (plus ":" for plurals), so tests do not depend on the texts. // Use in a test file: vi.mock('react-i18next', () => import('../test/i18n-mock.js')); const t = (key, options) => (options?.count === undefined ? key : `${key}:${options.count}`); const i18n = {language: 'de'}; export const useTranslation = () => ({t, i18n});