import type { UseTranslationResponse } (#4074)
This commit is contained in:
parent
ff6aa0776c
commit
aaedb61e0d
@ -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']);
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -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');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user