10 lines
191 B
TypeScript
10 lines
191 B
TypeScript
|
import localeRu from '../locales/ru.json';
|
||
|
|
||
|
module.exports = {
|
||
|
useTranslation: (_, { keyPrefix }) => {
|
||
|
return {
|
||
|
t: (key: string) => localeRu[`${keyPrefix}.${key}`],
|
||
|
};
|
||
|
}
|
||
|
};
|