Internationalizationext selector API – selector t for TypeScript
Internationalizationext selector API – selector t for TypeScript
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, this should make working with large translation catalogs far more pleasant — less “doom scrolling”, much better editor UX, and big type-performance improvements. We’d love feedback from folks who try the codemod or hit edge cases. => https://github.com/i18next/i18next/pull/2322
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Incorrect prediction on native model
Similar products
A TypeScript API for constructing XPath 1.0 expressions
Web API to TypeScript
Chainflow – API call workflows in TypeScript
Cerialize – Typescript serialization by annotation
Scala-ts – Scala to TypeScript compiler
Hapi with Typescript
JSONSchema to TypeScript compiler
Transpile Scala to TypeScript
Get started modding Factorio in TypeScript
DuoCode 1.0 bridges the gap between C# and TypeScript