Repository navigation
v3.2.0: stable client identity
Fixes an MAU over-count. The API counted one user per unique_id header and minted a new id whenever that header was empty — and the POST routes never echoed it back, so no client could reuse one. A project with under 500 real users reported 5,517 MAU.
Devices and servers are now identified differently, via a new sdk header:
- Browser / React Native — the SDK generates an id, persists it under i18n-keyless-user-id, and sends it on every request. Existing installs keep the id they have.
- Node / SSR — sends no id. The API counts the source connection, so a restart no longer bills a new user.
clearI18nKeylessStorageAndStore() now keeps the device id: it clears the cache, not the identity.
Also fixed: awaitForTranslation (node) had its failure cases backwards — ignoring an error was silent, catching one crashed the process. Now: ignore it and you crash, catch it and your fallback runs.