react-i18next#UseTranslationResponse TypeScript Examples
The following examples show how to use
react-i18next#UseTranslationResponse.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.test.tsx From oasis-wallet-web with Apache License 2.0 | 6 votes |
jest.mock('react-i18next', () => ({
Trans: (({ i18nKey }) => <>{i18nKey}</>) as TransType,
useTranslation: () => {
return {
t: str => str,
i18n: {
changeLanguage: () => new Promise(() => {}),
},
} as UseTranslationResponse<'translation'>
},
}))
Example #2
Source File: translate.ts From crust-apps with Apache License 2.0 | 5 votes |
export function useTranslation (): UseTranslationResponse<'react-query'> {
return useTranslationBase('react-query');
}
Example #3
Source File: translate.ts From crust-apps with Apache License 2.0 | 5 votes |
export function useTranslation (): UseTranslationResponse<'app-society'> {
return useTranslationBase('app-society');
}
Example #4
Source File: translate.ts From crust-apps with Apache License 2.0 | 5 votes |
export function useTranslation (): UseTranslationResponse<'app-staking'> {
return useTranslationBase('app-staking');
}
Example #5
Source File: translate.ts From crust-apps with Apache License 2.0 | 5 votes |
export function useTranslation (): UseTranslationResponse<'app-storage'> {
return useTranslationBase('app-storage');
}
Example #6
Source File: translate.ts From crust-apps with Apache License 2.0 | 5 votes |
export function useTranslation (): UseTranslationResponse<'app-sudo'> {
return useTranslationBase('app-sudo');
}
Example #7
Source File: translate.ts From crust-apps with Apache License 2.0 | 5 votes |
export function useTranslation (): UseTranslationResponse<'app-tech-comm'> {
return useTranslationBase('app-tech-comm');
}
Example #8
Source File: translate.ts From crust-apps with Apache License 2.0 | 5 votes |
export function useTranslation (): UseTranslationResponse<'app-treasury'> {
return useTranslationBase('app-treasury');
}
Example #9
Source File: translate.ts From crust-apps with Apache License 2.0 | 5 votes |
export function useTranslation (): UseTranslationResponse<'react-components'> {
return useTranslationBase('react-components');
}
Example #10
Source File: translate.ts From crust-apps with Apache License 2.0 | 5 votes |
export function useTranslation (): UseTranslationResponse<'react-hooks'> {
return useTranslationBase('react-hooks');
}
Example #11
Source File: translate.ts From crust-apps with Apache License 2.0 | 5 votes |
export function useTranslation (): UseTranslationResponse<'react-params'> {
return useTranslationBase('react-params');
}
Example #12
Source File: translate.ts From crust-apps with Apache License 2.0 | 5 votes |
export function useTranslation (): UseTranslationResponse<'app-signing'> {
return useTranslationBase('app-signing');
}
Example #13
Source File: translate.ts From crust-apps with Apache License 2.0 | 5 votes |
export function useTranslation (): UseTranslationResponse<'react-signer'> {
return useTranslationBase('react-signer');
}
Example #14
Source File: hooks.ts From frontegg-react with MIT License | 5 votes |
useT = (): UseTranslationResponse => useTranslation()
Example #15
Source File: translate.ts From subscan-multisig-react with Apache License 2.0 | 5 votes |
export function useTranslation(): UseTranslationResponse<'react-components'> {
return useTranslationBase('react-components');
}
Example #16
Source File: translate.ts From subscan-multisig-react with Apache License 2.0 | 5 votes |
export function useTranslation(): UseTranslationResponse<'react-hooks'> {
return useTranslationBase('react-hooks');
}
Example #17
Source File: translate.ts From subscan-multisig-react with Apache License 2.0 | 5 votes |
export function useTranslation(): UseTranslationResponse<'react-params'> {
return useTranslationBase('react-params');
}
Example #18
Source File: translate.ts From subscan-multisig-react with Apache License 2.0 | 5 votes |
export function useTranslation(): UseTranslationResponse<'react-query'> {
return useTranslationBase('react-query');
}
Example #19
Source File: translate.ts From subscan-multisig-react with Apache License 2.0 | 5 votes |
export function useTranslation(): UseTranslationResponse<'react-signer'> {
return useTranslationBase('react-signer');
}
Example #20
Source File: translate.ts From crust-apps with Apache License 2.0 | 5 votes |
export function useTranslation (): UseTranslationResponse<'app-explorer'> {
return useTranslationBase('app-explorer');
}
Example #21
Source File: translate.ts From crust-apps with Apache License 2.0 | 5 votes |
export function useTranslation (): UseTranslationResponse<'app-accounts'> {
return useTranslationBase('app-accounts');
}
Example #22
Source File: translate.ts From crust-apps with Apache License 2.0 | 5 votes |
export function useTranslation (): UseTranslationResponse<'app-addresses'> {
return useTranslationBase('app-addresses');
}
Example #23
Source File: translate.ts From crust-apps with Apache License 2.0 | 5 votes |
export function useTranslation (): UseTranslationResponse<'app-assets'> {
return useTranslationBase('app-assets');
}
Example #24
Source File: translate.ts From crust-apps with Apache License 2.0 | 5 votes |
export function useTranslation (): UseTranslationResponse<'app-bounties'> {
return useTranslationBase('app-bounties');
}
Example #25
Source File: translate.ts From crust-apps with Apache License 2.0 | 5 votes |
export function useTranslation (): UseTranslationResponse<'app-calendar'> {
return useTranslationBase('app-calendar');
}
Example #26
Source File: translate.ts From crust-apps with Apache License 2.0 | 5 votes |
export function useTranslation (): UseTranslationResponse<'app-claims'> {
return useTranslationBase('app-claims');
}
Example #27
Source File: translate.ts From crust-apps with Apache License 2.0 | 5 votes |
export function useTranslation (): UseTranslationResponse<'app-contracts'> {
return useTranslationBase('app-contracts');
}
Example #28
Source File: translate.ts From crust-apps with Apache License 2.0 | 5 votes |
export function useTranslation (): UseTranslationResponse<'app-council'> {
return useTranslationBase('app-council');
}
Example #29
Source File: translate.ts From crust-apps with Apache License 2.0 | 5 votes |
export function useTranslation (): UseTranslationResponse<'app-democracy'> {
return useTranslationBase('app-democracy');
}