ghost-portal/packages/app-accounts/src/translate.ts
Luke Sugiura 555e3ea6b2 Refactor Backup component with hooks (#1927)
* refactor Backup component with hooks

* show error only when password is touched
2019-11-25 13:24:26 +01:00

16 lines
469 B
TypeScript

// Copyright 2017-2019 @polkadot/app-accounts authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import {
withTranslation,
useTranslation as _useTranslation,
UseTranslationResponse
} from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return _useTranslation('app-accounts');
}
export default withTranslation(['app-accounts']);