Skip to content

Conversation

@QuiiBz
Copy link
Contributor

@QuiiBz QuiiBz commented Oct 27, 2022

BREAKING CHANGE: Required generic for useI18n() / useTranslation.

When using useI18n() / useTranslation() without providing a generic for the locale, t and namespaceTranslation will throw an error (You must pass a generic argument to ****) to enforce the usage of a Locale.

@codecov
Copy link

codecov bot commented Oct 27, 2022

Codecov Report

Merging #1061 (d6f5349) into main (db15cea) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1061   +/-   ##
=======================================
  Coverage   99.82%   99.82%           
=======================================
  Files          23       23           
  Lines         584      584           
  Branches       80       80           
=======================================
  Hits          583      583           
  Partials        1        1           
Impacted Files Coverage Δ
packages/use-i18n/src/usei18n.tsx 98.92% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@QuiiBz QuiiBz force-pushed the fix/required-generic-locale branch from 6e36954 to d6f5349 Compare October 27, 2022 08:56
@QuiiBz QuiiBz changed the title feat!(use-i18n): required generic feat(use-i18n): required generic Oct 27, 2022
@QuiiBz QuiiBz changed the title feat(use-i18n): required generic feat(use-i18n)!: required generic Oct 27, 2022
@QuiiBz QuiiBz merged commit 04b2451 into main Oct 27, 2022
@QuiiBz QuiiBz deleted the fix/required-generic-locale branch October 27, 2022 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants