You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yarn extract-strings --outfile=./src/i18n/en/strings.json "src/**/!(*.test|*.d).{ts,tsx}"
yarn run v1.22.19
Extracting strings from '[redacted]' + 1597 other files...
undefined:3
return Pets.cat
^
ReferenceError: Pets is not defined
at eval (eval at evaluate ([redacted]/node_modules/t-i18n/scripts/extract-strings.js:21:22), <anonymous>:3:1)
The following doesn't produce the same error:
const cat = "Cat";
return T(cat)
The text was updated successfully, but these errors were encountered:
It would be convenient to be define strings values in an Object and be able to reference the values using the
T
helper:This currently throws the following error:
The following doesn't produce the same error:
The text was updated successfully, but these errors were encountered: