Utility to find hardcoded strings in jsx/tsx files (so they can be replaced by translations).
npm install find-jsx-stringssh
npx find-jsx-strings [opts]
`
Example
`tsx
// index.tsx
export default function App() {
return (
Hello
Start editing
)
}
`
`sh
npx find-jsx-strings .
`
Will report:
`
index.tsx:6
6 │ Hello
· ─────
index.tsx:7
7 │ Start editing
· ─────────────
index.tsx:8
8 │
· ───────────────
`
Options
`
-A, --skip-attributes Skip all string attributes or accepts comma separated list
--skip-text Skip all JSX text
-P, --skip-pattern Skip text or attributes that include this string
--skip-files Skip all files that include these strings (comma separated list)
--include-literal Include reporting string literals
--include-template Include reporting template literals
-v, --version Displays current version
-h, --help Display help message
``