1
0
mirror of https://github.com/pavlobu/deskreen.git synced 2025-05-18 08:20:10 -07:00
deskreen/app/containers/__mocks__/react-i18next.ts
2020-09-24 19:06:07 +03:00

20 lines
364 B
TypeScript

/* eslint-disable import/prefer-default-export */
import { ThirdPartyModule } from 'i18next';
export const useTranslation = () => {
return {
t: (key: string) => {
if (key === 'Language') {
return 'Language';
}
return '';
},
};
};
export const initReactI18next: ThirdPartyModule = {
type: '3rdParty',
init: () => {},
};