mirror of
https://github.com/pavlobu/deskreen.git
synced 2025-05-18 08:20:10 -07:00
20 lines
364 B
TypeScript
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: () => {},
|
|
};
|