UNPKG
@particular.cloud/i18n-react
Version:
latest (0.5.12)
0.5.12
0.5.11
0.5.10
0.5.9
0.5.8
0.5.7
0.5.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.2
0.3.1
0.3.0
0.2.9
0.2.8
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.1
0.2.0
0.1.0
0.0.23
0.0.22
0.0.21
0.0.20
0.0.19
0.0.18
0.0.17
0.0.16
0.0.15
0.0.14
0.0.13
0.0.12
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
i18n-react builds on top of i18n-js and implements a translation hook and provider
particular.cloud
@particular.cloud/i18n-react
/
dist
/
src
/
useText.d.ts
7 lines
(6 loc)
•
262 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
{
TranslationParams
}
from
'@particular.cloud/i18n-js'
;
/** * useText: hook to query and populate your localized application text */
declare
const
useText
:
(
{ key, language, values, isolate }:
TranslationParams
) =>
string
;
export
default
useText;