import type { UseTranslationResponse } (#4074)

This commit is contained in:
Jaco Greeff 2020-11-26 10:23:52 +01:00 committed by GitHub
parent ff6aa0776c
commit aaedb61e0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
28 changed files with 56 additions and 28 deletions

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/apps authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase(['apps', 'apps-routing']);

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/app-accounts authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('app-accounts');

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/app-addresses authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('app-addresses');

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/app-calendar authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('app-calendar');

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/app-claims authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse, withTranslation } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase, withTranslation } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('app-claims');

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/app-contracts authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse, withTranslation } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase, withTranslation } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('app-contracts');

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/app-council authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('app-council');

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/app-explorer authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('app-democracy');

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/app-explorer authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('app-explorer');

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/app-extrinsics authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('app-extrinsics');

View File

@ -1,7 +1,8 @@
// Copyright 2019 @polkadot/app-generic-asset authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse, withTranslation } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase, withTranslation } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('app-generic-asset');

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/app-js authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('app-js');

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/app-parachains authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('app-parachains');

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/app-poll authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('app-poll');

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/app-rpc authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('app-rpc');

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/app-settings authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('app-settings');

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/app-signing authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('app-signing');

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/app-society authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('app-society');

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/app-staking authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('app-staking');

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/app-storage authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('app-storage');

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/app-sudo authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('app-sudo');

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/app-tech-comm authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('app-tech-comm');

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/app-explorer authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('app-treasury');

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse, withTranslation } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase, withTranslation } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('react-components');

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse, withTranslation } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase, withTranslation } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('react-hooks');

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/react-params authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse, withTranslation } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase, withTranslation } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('react-params');

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/react-query authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse, withTranslation } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase, withTranslation } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('react-query');

View File

@ -1,7 +1,8 @@
// Copyright 2017-2020 @polkadot/react-signer authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useTranslation as useTranslationBase, UseTranslationResponse, withTranslation } from 'react-i18next';
import type { UseTranslationResponse } from 'react-i18next';
import { useTranslation as useTranslationBase, withTranslation } from 'react-i18next';
export function useTranslation (): UseTranslationResponse {
return useTranslationBase('react-signer');