| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| onIdMissing handler has been implemented source code.tar.gz | 2019-12-23 | 1.5 MB | |
| onIdMissing handler has been implemented source code.zip | 2019-12-23 | 1.6 MB | |
| README.md | 2019-12-23 | 495 Bytes | |
| Totals: 3 Items | 3.1 MB | 0 | |
In some cases you want to find incorrect usage of translation keys. For example, you received error key from server response, and that key does not exist in current translations. You can log that kind of errors by onIdMissing handler.
Basic example:
:::jsx
const App: React.FC = () => {
return (
<EOLocaleProvider language="en" locales={[]} onIdMissing={id => {
// do something
}}>
...
</EOLocaleProvider>
)
}