Skip to content

Conversation

@kyranet
Copy link
Member

@kyranet kyranet commented Jul 24, 2023

This is a CLI tool to generate the i18next augmentations

@kyranet kyranet force-pushed the feat/add-i18next-type-generator branch 2 times, most recently from 0e7a7dd to d723938 Compare July 24, 2023 18:11
@codecov
Copy link

codecov bot commented Jul 24, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (f1c8f77) 68.59% compared to head (8a1afa6) 68.59%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #273   +/-   ##
=======================================
  Coverage   68.59%   68.59%           
=======================================
  Files          51       51           
  Lines        3760     3760           
  Branches      174      174           
=======================================
  Hits         2579     2579           
  Misses       1160     1160           
  Partials       21       21           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kyranet kyranet force-pushed the feat/add-i18next-type-generator branch from 64174f2 to 2da9eb9 Compare August 20, 2023 15:12
feat: `getT` now supports namespace as a second argument
feat: `getSupportedLanguageT` now supports namespace as a second argument
feat: `getSupportedUserLanguageT` now supports namespace as a second argument
typings: `getT` now returns `TFunction` with the correct default namespace
typings: `LocalePrefixKey`'s type now doesn't force a `commands/` prefix
typings: `LocalePrefixKey` now uses i18next's `nsSeparator` type instead of a hardcoded `:`
typings: All functions using `TypedT` now requires `LocalePrefixKey`

BREAKING CHANGE: refactor: Removed `resolveKey`, use `getSupportedLanguageT(interaction)(...args)` instead
BREAKING CHANGE: refactor: Removed `resolveUserKey`, use `getSupportedUserLanguageT(interaction)(...args)` instead
BREAKING CHANGE: typings: Removed `T` type utility function
BREAKING CHANGE: typings: Removed `FT` type utility function
BREAKING CHANGE: typings: Removed `TypedT` type utility
BREAKING CHANGE: typings: Removed `TypedFT` type utility
BREAKING CHANGE: typings: Removed `Value` type utility
BREAKING CHANGE: typings: Removed `Values` type utility
BREAKING CHANGE: typings: Removed `Difference` type utility
BREAKING CHANGE: typings: `i18next.TFunction` is not longer augmented, `lng` and `ns` is not longer assumed to exist
BREAKING CHANGE: refactor: Updated `@skyra/http-framework-i18n` to `2.0.0`
BREAKING CHANGE: refactor: Removed `LanguageKeys` in favour of `@skyra/i18next-type-generator` and `i18next` v23's enhanced type support
@kyranet kyranet force-pushed the feat/add-i18next-type-generator branch from 2da9eb9 to 8a1afa6 Compare August 20, 2023 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants