Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

attempt to fix locale issue

Amruth Pillai69a527661447
diff --git a/client/pages/[username]/[slug]/printer.tsx b/client/pages/[username]/[slug]/printer.tsx
index 802205624..f49cc5863 100644
--- a/client/pages/[username]/[slug]/printer.tsx
+++ b/client/pages/[username]/[slug]/printer.tsx
@@ -27,7 +27,7 @@ type Props = {
export const getServerSideProps: GetServerSideProps<Props | Promise<Props>, QueryParams> = async ({
query,
- locale,
+ locale = 'en',
}) => {
const { username, slug, secretKey } = query as QueryParams;
@@ -35,7 +35,7 @@ export const getServerSideProps: GetServerSideProps<Props | Promise<Props>, Quer
if (isEmpty(secretKey)) throw new Error('There is no secret key!');
const resume = await fetchResumeByIdentifier({ username, slug, options: { secretKey } });
- const displayLocale = get(resume, 'metadata.locale') ?? locale ?? 'en';
+ const displayLocale = get(resume, 'metadata.locale') ?? locale;
return {
props: {