├── .all-contributorsrc ├── .babelrc ├── .coveralls.yml ├── .editorconfig ├── .eslintignore ├── .eslintrc ├── .gitattributes ├── .github ├── ISSUE_TEMPLATE.md ├── PULL_REQUEST_TEMPLATE.md └── workflows │ └── ci.yml ├── .gitignore ├── .prettierignore ├── .prettierrc ├── CODE_OF_CONDUCT.md ├── examples └── with-typescript │ ├── app │ ├── components │ │ ├── App │ │ │ ├── index.tsx │ │ │ └── messages.ts │ │ ├── Greeting │ │ │ ├── index.tsx │ │ │ └── messages.ts │ │ └── LanguageProvider │ │ │ └── index.tsx │ ├── index.d.ts │ ├── index.html │ ├── index.tsx │ └── translations │ │ ├── en.json │ │ └── ja.json │ ├── babel.config.js │ ├── package.json │ ├── readme.md │ ├── tsconfig.json │ ├── webpack.config.js │ └── yarn.lock ├── jest.config.js ├── license ├── package.json ├── readme.md ├── src ├── __tests__ │ ├── __snapshots__ │ │ ├── components.test.ts.snap │ │ ├── hook.test.ts.snap │ │ ├── index.test.ts.snap │ │ └── injection.test.ts.snap │ ├── components.test.ts │ ├── hook.test.ts │ ├── index.test.ts │ └── injection.test.ts ├── babel-plugin-tester.d.ts ├── index.ts ├── types.ts ├── utils │ ├── getPrefix.ts │ ├── index.ts │ ├── isImportLocalName.ts │ └── testUtils.ts └── visitors │ ├── addIdToDefineMessage.ts │ ├── addIdToFormatMessage.ts │ └── jsx.ts ├── tsconfig.json ├── types.d.ts └── yarn.lock /.all-contributorsrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/.all-contributorsrc -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/.babelrc -------------------------------------------------------------------------------- /.coveralls.yml: -------------------------------------------------------------------------------- 1 | repo_token: xgkdsD7kShO8c0G1f51R77L0oshots57p 2 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | lib 2 | examples 3 | jest.config.js 4 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/.github/ISSUE_TEMPLATE.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | lib 3 | dist 4 | coverage 5 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | **/flow-typed/** 2 | coverage 3 | lib 4 | dist 5 | package.json 6 | .github 7 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/.prettierrc -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /examples/with-typescript/app/components/App/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/examples/with-typescript/app/components/App/index.tsx -------------------------------------------------------------------------------- /examples/with-typescript/app/components/App/messages.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/examples/with-typescript/app/components/App/messages.ts -------------------------------------------------------------------------------- /examples/with-typescript/app/components/Greeting/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/examples/with-typescript/app/components/Greeting/index.tsx -------------------------------------------------------------------------------- /examples/with-typescript/app/components/Greeting/messages.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/examples/with-typescript/app/components/Greeting/messages.ts -------------------------------------------------------------------------------- /examples/with-typescript/app/components/LanguageProvider/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/examples/with-typescript/app/components/LanguageProvider/index.tsx -------------------------------------------------------------------------------- /examples/with-typescript/app/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/examples/with-typescript/app/index.d.ts -------------------------------------------------------------------------------- /examples/with-typescript/app/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/examples/with-typescript/app/index.html -------------------------------------------------------------------------------- /examples/with-typescript/app/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/examples/with-typescript/app/index.tsx -------------------------------------------------------------------------------- /examples/with-typescript/app/translations/en.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/examples/with-typescript/app/translations/en.json -------------------------------------------------------------------------------- /examples/with-typescript/app/translations/ja.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/examples/with-typescript/app/translations/ja.json -------------------------------------------------------------------------------- /examples/with-typescript/babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/examples/with-typescript/babel.config.js -------------------------------------------------------------------------------- /examples/with-typescript/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/examples/with-typescript/package.json -------------------------------------------------------------------------------- /examples/with-typescript/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/examples/with-typescript/readme.md -------------------------------------------------------------------------------- /examples/with-typescript/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/examples/with-typescript/tsconfig.json -------------------------------------------------------------------------------- /examples/with-typescript/webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/examples/with-typescript/webpack.config.js -------------------------------------------------------------------------------- /examples/with-typescript/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/examples/with-typescript/yarn.lock -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/jest.config.js -------------------------------------------------------------------------------- /license: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/license -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/package.json -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/readme.md -------------------------------------------------------------------------------- /src/__tests__/__snapshots__/components.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/src/__tests__/__snapshots__/components.test.ts.snap -------------------------------------------------------------------------------- /src/__tests__/__snapshots__/hook.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/src/__tests__/__snapshots__/hook.test.ts.snap -------------------------------------------------------------------------------- /src/__tests__/__snapshots__/index.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/src/__tests__/__snapshots__/index.test.ts.snap -------------------------------------------------------------------------------- /src/__tests__/__snapshots__/injection.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/src/__tests__/__snapshots__/injection.test.ts.snap -------------------------------------------------------------------------------- /src/__tests__/components.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/src/__tests__/components.test.ts -------------------------------------------------------------------------------- /src/__tests__/hook.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/src/__tests__/hook.test.ts -------------------------------------------------------------------------------- /src/__tests__/index.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/src/__tests__/index.test.ts -------------------------------------------------------------------------------- /src/__tests__/injection.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/src/__tests__/injection.test.ts -------------------------------------------------------------------------------- /src/babel-plugin-tester.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/src/babel-plugin-tester.d.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utils/getPrefix.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/src/utils/getPrefix.ts -------------------------------------------------------------------------------- /src/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/src/utils/index.ts -------------------------------------------------------------------------------- /src/utils/isImportLocalName.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/src/utils/isImportLocalName.ts -------------------------------------------------------------------------------- /src/utils/testUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/src/utils/testUtils.ts -------------------------------------------------------------------------------- /src/visitors/addIdToDefineMessage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/src/visitors/addIdToDefineMessage.ts -------------------------------------------------------------------------------- /src/visitors/addIdToFormatMessage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/src/visitors/addIdToFormatMessage.ts -------------------------------------------------------------------------------- /src/visitors/jsx.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/src/visitors/jsx.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/tsconfig.json -------------------------------------------------------------------------------- /types.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/types.d.ts -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akameco/babel-plugin-react-intl-auto/HEAD/yarn.lock --------------------------------------------------------------------------------