Internationalizationext selector API – selector t for TypeScript
Show HN: Internationalizationext selector API – selector t for TypeScript
Internationalizationext selector API – selector t for TypeScript is a business in show hn launch.
Profile
i18next released a new version of a new selector API that lets you pass a selector function to t instead of a string key:// before i18next.t('my.nested.key')// after i18next.t($ => $.my.nested.key)The change unlocks IDE autocompletion and “go to definition”, preserves JSDoc from your resource files at the call site, and — critically — removes the huge type-level unions that used to grind TypeScript/IDEs to a halt. See the announcement and examples.The selector support has landed in i18next (PR merged) and react-i18next has matching typings/changes. If you want to migrate, there’s an automated codemod to convert usages to the selector form.Why share this here: if you use TypeScript + i18next,
The company sits in the show hn launch segment, where it competes on its core product or service.
Its current recorded stage is Show HN launch.
| Sector | Show HN launch |
|---|---|
| Stage | Show HN launch |
Website: www.locize.com/blog/i18next-typescript-selector-api
Browse related
Create a free account