i18n-extract
i18n-extract copied to clipboard
Is MR still supported ?
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'