boxyhq / saas-starter-kit

🔥 Enterprise SaaS Starter Kit - Kickstart your enterprise app development with the Next.js SaaS boilerplate 🚀
https://boxyhq.com/blog/enterprise-ready-saas-starter-kit
Apache License 2.0
3.25k stars 736 forks source link

API Errors not localized #1285

Open nmago opened 4 months ago

nmago commented 4 months ago

Hello, guys!

Thank you for putting in such effort into the template codebase; the thing seems amazing.

I have a localization-related question. Upon my initial examination of the codebase, I noticed that API errors aren't localized and are always returned in plain English.

For example, in the file pages/auth/forgot-password.tsx:

if (!response.ok) {
  toast.error(json.error.message);
  return;
}

toast.success(t('password-reset-link-sent'));

While the success message is being translated, the API error is being passed as is.

Is this intentional or left for the future? Maybe I'm missing something?

Musyonchez commented 4 months ago

Can I get assigned to this.

deepakprabhakara commented 4 months ago

Thanks @Musyonchez, assigned the issue to you.

SharmaPrakhar25 commented 2 months ago

Greetings @deepakprabhakara, Can I pick this up ? I can see that @Musyonchez has an open PR with pending work and is not working on it anymore.

hkrhemendra commented 2 months ago

Hi @deepakprabhakara , I looking for my first open source contribution. Can I pick this issue?

deepakprabhakara commented 2 months ago

Apologies for the delay in getting to this, @SharmaPrakhar25 please pick this up. Many thanks.