├── .babelrc ├── .eslintrc.js ├── .github ├── dependabot.yml └── workflows │ └── node.js.yml ├── .gitignore ├── .jshintignore ├── .npmignore ├── .npmrc ├── Gruntfile.js ├── LICENSE.md ├── README.md ├── docs ├── api │ ├── I13nNode.md │ ├── README.md │ ├── createI13nNode.md │ └── setupI13n.md └── guides │ ├── README.md │ ├── createPlugins.md │ ├── eventSystem.md │ ├── integrateWithComponents.md │ └── utilFunctions.md ├── index.es.js ├── index.js ├── jest-setup.js ├── jest.config.js ├── package.json ├── src ├── components │ ├── I13nAnchor.js │ ├── I13nButton.js │ ├── I13nDiv.js │ ├── core │ │ ├── CoreComponent.jsx │ │ └── I13nContext.jsx │ └── debug │ │ ├── Dashboard.jsx │ │ ├── DashboardContainer.jsx │ │ ├── DashboardItem.jsx │ │ ├── DashboardTitle.jsx │ │ └── TriggerNode.jsx ├── core │ ├── I13nNode.js │ ├── ReactI13n.js │ ├── createI13nNode.jsx │ ├── setupI13n.jsx │ └── tests │ │ ├── I13nNode.test.jsx │ │ ├── ReactI13n.test.jsx │ │ ├── createI13nNode.test.jsx │ │ └── setupI13n.test.jsx ├── hooks │ ├── useDebugDashboard.js │ ├── useI13nNode.js │ ├── useIsomorphicLayoutEffect.js │ ├── useReactI13nRoot.js │ ├── useScanLinks.js │ └── useViewportDetect.js ├── libs │ ├── DebugDashboard.js │ ├── EventsQueue.js │ ├── clickHandler.js │ └── tests │ │ ├── DebugDashboard.test.js │ │ ├── EventsQueue.test.js │ │ └── clickHandler.test.js └── utils │ ├── augmentComponent.js │ ├── getDisplayName.js │ ├── isUndefined.js │ ├── variables.js │ └── warnAndPrintTrace.js └── tests ├── benchmark └── benchmark.js └── functional ├── bootstrap.js ├── i13n-functional.jsx ├── i13n.spec.js ├── mock-destination-page.html ├── page.html └── saucelabs.sh /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/.babelrc -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/node.js.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/.github/workflows/node.js.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/.gitignore -------------------------------------------------------------------------------- /.jshintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/.npmignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | legacy-peer-deps = true 2 | package-lock = false -------------------------------------------------------------------------------- /Gruntfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/Gruntfile.js -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/README.md -------------------------------------------------------------------------------- /docs/api/I13nNode.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/docs/api/I13nNode.md -------------------------------------------------------------------------------- /docs/api/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/docs/api/README.md -------------------------------------------------------------------------------- /docs/api/createI13nNode.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/docs/api/createI13nNode.md -------------------------------------------------------------------------------- /docs/api/setupI13n.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/docs/api/setupI13n.md -------------------------------------------------------------------------------- /docs/guides/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/docs/guides/README.md -------------------------------------------------------------------------------- /docs/guides/createPlugins.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/docs/guides/createPlugins.md -------------------------------------------------------------------------------- /docs/guides/eventSystem.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/docs/guides/eventSystem.md -------------------------------------------------------------------------------- /docs/guides/integrateWithComponents.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/docs/guides/integrateWithComponents.md -------------------------------------------------------------------------------- /docs/guides/utilFunctions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/docs/guides/utilFunctions.md -------------------------------------------------------------------------------- /index.es.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/index.es.js -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/index.js -------------------------------------------------------------------------------- /jest-setup.js: -------------------------------------------------------------------------------- 1 | // polyfill 2 | require('intersection-observer'); -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/package.json -------------------------------------------------------------------------------- /src/components/I13nAnchor.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/components/I13nAnchor.js -------------------------------------------------------------------------------- /src/components/I13nButton.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/components/I13nButton.js -------------------------------------------------------------------------------- /src/components/I13nDiv.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/components/I13nDiv.js -------------------------------------------------------------------------------- /src/components/core/CoreComponent.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/components/core/CoreComponent.jsx -------------------------------------------------------------------------------- /src/components/core/I13nContext.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/components/core/I13nContext.jsx -------------------------------------------------------------------------------- /src/components/debug/Dashboard.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/components/debug/Dashboard.jsx -------------------------------------------------------------------------------- /src/components/debug/DashboardContainer.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/components/debug/DashboardContainer.jsx -------------------------------------------------------------------------------- /src/components/debug/DashboardItem.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/components/debug/DashboardItem.jsx -------------------------------------------------------------------------------- /src/components/debug/DashboardTitle.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/components/debug/DashboardTitle.jsx -------------------------------------------------------------------------------- /src/components/debug/TriggerNode.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/components/debug/TriggerNode.jsx -------------------------------------------------------------------------------- /src/core/I13nNode.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/core/I13nNode.js -------------------------------------------------------------------------------- /src/core/ReactI13n.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/core/ReactI13n.js -------------------------------------------------------------------------------- /src/core/createI13nNode.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/core/createI13nNode.jsx -------------------------------------------------------------------------------- /src/core/setupI13n.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/core/setupI13n.jsx -------------------------------------------------------------------------------- /src/core/tests/I13nNode.test.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/core/tests/I13nNode.test.jsx -------------------------------------------------------------------------------- /src/core/tests/ReactI13n.test.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/core/tests/ReactI13n.test.jsx -------------------------------------------------------------------------------- /src/core/tests/createI13nNode.test.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/core/tests/createI13nNode.test.jsx -------------------------------------------------------------------------------- /src/core/tests/setupI13n.test.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/core/tests/setupI13n.test.jsx -------------------------------------------------------------------------------- /src/hooks/useDebugDashboard.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/hooks/useDebugDashboard.js -------------------------------------------------------------------------------- /src/hooks/useI13nNode.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/hooks/useI13nNode.js -------------------------------------------------------------------------------- /src/hooks/useIsomorphicLayoutEffect.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/hooks/useIsomorphicLayoutEffect.js -------------------------------------------------------------------------------- /src/hooks/useReactI13nRoot.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/hooks/useReactI13nRoot.js -------------------------------------------------------------------------------- /src/hooks/useScanLinks.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/hooks/useScanLinks.js -------------------------------------------------------------------------------- /src/hooks/useViewportDetect.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/hooks/useViewportDetect.js -------------------------------------------------------------------------------- /src/libs/DebugDashboard.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/libs/DebugDashboard.js -------------------------------------------------------------------------------- /src/libs/EventsQueue.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/libs/EventsQueue.js -------------------------------------------------------------------------------- /src/libs/clickHandler.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/libs/clickHandler.js -------------------------------------------------------------------------------- /src/libs/tests/DebugDashboard.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/libs/tests/DebugDashboard.test.js -------------------------------------------------------------------------------- /src/libs/tests/EventsQueue.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/libs/tests/EventsQueue.test.js -------------------------------------------------------------------------------- /src/libs/tests/clickHandler.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/libs/tests/clickHandler.test.js -------------------------------------------------------------------------------- /src/utils/augmentComponent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/utils/augmentComponent.js -------------------------------------------------------------------------------- /src/utils/getDisplayName.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/utils/getDisplayName.js -------------------------------------------------------------------------------- /src/utils/isUndefined.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/utils/isUndefined.js -------------------------------------------------------------------------------- /src/utils/variables.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/utils/variables.js -------------------------------------------------------------------------------- /src/utils/warnAndPrintTrace.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/src/utils/warnAndPrintTrace.js -------------------------------------------------------------------------------- /tests/benchmark/benchmark.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/tests/benchmark/benchmark.js -------------------------------------------------------------------------------- /tests/functional/bootstrap.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/tests/functional/bootstrap.js -------------------------------------------------------------------------------- /tests/functional/i13n-functional.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/tests/functional/i13n-functional.jsx -------------------------------------------------------------------------------- /tests/functional/i13n.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/tests/functional/i13n.spec.js -------------------------------------------------------------------------------- /tests/functional/mock-destination-page.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/tests/functional/mock-destination-page.html -------------------------------------------------------------------------------- /tests/functional/page.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/tests/functional/page.html -------------------------------------------------------------------------------- /tests/functional/saucelabs.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yahoo/react-i13n/HEAD/tests/functional/saucelabs.sh --------------------------------------------------------------------------------