Aaron Presley
02/27/2023, 10:50 PMconst { t } = useLocale();
<button>{t(someTest ? var1 : var2)}</button>
Instances like the above make it difficult for eslint to understand what the resolved value here will be, and therefore these instances will be ignored for now.
If desired the eslint plugin could provide a warning to use literals inside the t()
function, but that's not part of my initial effortsAaron Presley
02/28/2023, 12:44 AMPeer
Peer
Peer
Aaron Presley
02/28/2023, 4:35 PM