Refactor to use correct i18n t type

fix(client): refactor to use correct i18n t type (#42865)
Refactor to use correct i18n t typefixrefactor use correct i18n type client

Committed by ShaunSHamilton

commit message
fix(client): refactor to use correct i18n t type (#42865)

* fix(client): refactor to use correct i18n t type
 
* appease Oliver by importing directly from react-i18n
 
* fix: use default TFunction type variable
 
Co-authored-by: Oliver Eyton-Williams <[email protected]>

Editor assessment

The subject says the client now uses the correct i18n t type, which is meaningful to developers familiar with typed translation functions, though refactor inside a fix header slightly muddies the type signal. The client scope is right. The body is squash noise: appease Oliver by importing directly from react-i18n is conversational, the TFunction note is the only technical substance, and a Co-authored-by trailer follows. No motivation for why the type was wrong is given. The PR reference is well formed. Understandable for its audience but thin and loosely assembled, leaving the message at acceptable rather than good.

Browse categories

More fix examples · Back to search