planning
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s

This commit is contained in:
2024-10-14 09:15:30 +02:00
parent bcba00a730
commit 6e64e138e2
21059 changed files with 2317811 additions and 1 deletions

16
node_modules/react-polyglot/src/translate.js generated vendored Normal file
View File

@@ -0,0 +1,16 @@
import React from 'react'
import hoistNonReactStatics from 'hoist-non-react-statics'
import I18nContext from './i18n-context'
// higher order decorator for components that need `t`
export default function translate() {
return WrappedComponent => {
const _translate = props => (
<I18nContext.Consumer>
{t => <WrappedComponent {...props} t={t} />}
</I18nContext.Consumer>
)
return hoistNonReactStatics(_translate, WrappedComponent)
}
}