translate.ts 403 B

123456789
  1. // Copyright 2017-2020 @polkadot/apps authors & contributors
  2. // This software may be modified and distributed under the terms
  3. // of the Apache-2.0 license. See the LICENSE file for details.
  4. import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next';
  5. export function useTranslation (): UseTranslationResponse {
  6. return useTranslationBase(['apps', 'apps-routing']);
  7. }