Closed souvik666 closed 8 months ago
Hi!
Sorry to hear you're running into an issue. To help us best begin debugging the underlying cause, it is incredibly helpful if you're able to create a minimal reproduction. This is a simplified example of the issue that makes it clear and obvious what the issue is and how we can begin to debug it.
If you're up for it, we'd very much appreciate if you could provide a minimal reproduction and we'll be able to take another look.
Thanks for using Clerk!
hey @LekoArts ,this the main implementation it's a react-vite project
import { chakra, Flex, Link, Stack, Text } from "@chakra-ui/react";
import { esES } from "@clerk/localizations";
import { sdk } from "@configs/index";
import { colors } from "@constants/colors";
import { useEffect, useRef } from "react";
function SignupPage() {
const _c = sdk?.clerk; // just the clerk instance
const containerRef = useRef<HTMLDivElement>(null);
// const lang = navigator.language || (navigator as any)?.userLanguage;
const mountSignup = async () => {
if (containerRef.current == null) return;
await _c?.load({ localization: esES });
_c?.mountSignUp(containerRef.current, {
afterSignUpUrl: window.origin + "/handshake",
signInUrl: window.origin + "/login",
redirectUrl: window.origin + "/handshake",
});
return;
};
useEffect(() => {
mountSignup();
return () => {
containerRef?.current && _c?.unmountSignIn(containerRef?.current);
};
}, [ ]);
return (
<Stack bg={colors.bg_5} minH={"100vh"} align={"center"} justify={"center"}>
<div ref={containerRef}></div>
</Stack>
);
}
export default SignupPage;
In an effort to keep our GitHub issues clean and focused, we close any issues that are awaiting a reproduction after 8 days on inactivity, and it has been 7 days. This issue will be closed tomorrow unless a reproduction is produced. If it takes longer than this to get a reproduction, that's ok, just drop a comment and we will re-open the issue then.
Thanks for being a part of the Clerk community! ๐
Hey ๐ Please post your full minimal reproduction (a GitHub repository) as often such errors can't be replicated from just a single code snippet. Thanks!
Hey ๐ Please post your full minimal reproduction (a GitHub repository) as often such errors can't be replicated from just a single code snippet. Thanks!
sure I will try to make a small vite app for the same
@souvik666 What's preventing you from using the <ClerkProvider/>
?
@souvik666 What's preventing you from using the
<ClerkProvider/>
?
I'm already using it, I guess the signup component will not load without the provider it's in App.tsx
it's about the locals not being loaded, and I have tried both, passing locals to the provider and also using the js SDK to set locals before mounting it to a node
Is it possible to give us access to your repo or create a similar one and share that with us.
I've been doing this, in one of my personal apps for a while and I'm certain that it works.
<ClerkProvider localization={enGR}>
{...}
</ClerkProvider>
Is it possible to give us access to your repo or create a similar one and share that with us.
I've been doing this, in one of my personal apps for a while and I'm certain that it works.
<ClerkProvider localization={enGR}> {...} </ClerkProvider>
I have tried it it might be a issue that iโM using the js sdk in react after changing the whole to react package itโs working fine
One more thing
If you wish to load clerk from clerk-js and then also use the provider you can pass the clerk instance to ClerkProvider
via the Clerk={}
prop. But i don't think it does not worth the trouble :)
One more thing
If you wish to load clerk from clerk-js and then also use the provider you can pass the clerk instance to
ClerkProvider
via theClerk={}
prop. But i don't think it does not worth the trouble :)
Have done the same way with locals prop no luck anyway now itโs working fine
Preliminary Checks
Reproduction / Replay Link
https://codeshare.io/oQ9yXp
Publishable key
pk_test_bWludC1oYW1zdGVyLTIyLmNsZXJrLmFjY291bnRzLmRldiQ
Description
Steps to reproduce:
Expected behavior:
it should load the text in Spanish instead of English even if we are using a local object given by clerk team
Actual behavior:
it is always loading the text in English
Environment