i18n-extract icon indicating copy to clipboard operation
i18n-extract copied to clipboard

Is MR still supported ?

Open cy-98 opened this issue 2 years ago • 0 comments

New feature: Scan all strings, intersect with translations provided.

code:

// Provider
<React.Context value={{ titleKey: 'a' }} />


// Consumer
const { titleKey } = useContext();
return t(titleKey)
const translations = ['a', 'b', 'c',]
scan(`code...`, translations) // output:  'a'

cy-98 avatar Dec 02 '22 03:12 cy-98