UNPKG
@wimdental/i18n
Version:
latest (1.0.5)
1.0.5
Simple module to localize the React using simple tools.
wimdental/wimdental-i18n
@wimdental/i18n
/
src
/
i18n
/
shapes
/
DictionaryShape.js
8 lines
(6 loc)
•
229 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
import PropTypes
from
'prop-types'
; export
const
DictionaryShape
= PropTypes.
shape
({
locale
: PropTypes.
string
,
dictionary
: PropTypes.
object
.isRequired,
getTranslation
: PropTypes.func.isRequired }).isRequired;