mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-19 21:28:26 +02:00
fix: Rename use-auth.js to use-auth.jsx for JSX support
This commit is contained in:
2875 files changed
+459559
-2
No files matched your search
+15
@@ -0,0 +1,15 @@
|
||||
import { useTranslation } from './useTranslation.js';
|
||||
|
||||
export function Translation(props) {
|
||||
const { ns, children, ...options } = props;
|
||||
const [t, i18n, ready] = useTranslation(ns, options);
|
||||
|
||||
return children(
|
||||
t,
|
||||
{
|
||||
i18n,
|
||||
lng: i18n.language,
|
||||
},
|
||||
ready,
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user