vega-frontend-monorepo/apps/trading/lib/use-t.ts
Bartłomiej Głownia bcf17bb34e
feat(trading): i18n language switcher (#5320)
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
2023-11-29 15:16:17 +01:00

5 lines
193 B
TypeScript

import { useTranslation } from 'react-i18next';
export const ns = 'trading';
export const useT = () => useTranslation('trading').t;
export const useI18n = () => useTranslation('trading').i18n;