OopsIDeployed
OopsIDeployed
WWasp
Created by OopsIDeployed on 3/22/2025 in #🙋questions
Need help integrating Starlight Blog with a multi-language Starlight site (EN/FR)
Hi everyone, I’m using Starlight in a multi-language setup (English and French), and everything works great as long as I only use Starlight. However, as soon as I try to incorporate starlight-blog, I run into various issues: 404 errors on the translated version, the blog layout not showing up correctly, etc. I’ve tried different folder structures and adjusted my astro.config.mjs and content.config.ts files, but I can’t seem to get everything working together. Does anyone have a working example configuration or guidance on how to properly set up Starlight and Starlight Blog in a multi-language environment (EN/FR)? Thank you in advance for any help!
5 replies
WWasp
Created by OopsIDeployed on 3/11/2025 in #🙋questions
How can I modify getVerificationEmailContent to support language-based email content?
Hello everyone, I'm using Wasp's built-in authentication and have configured email verification in my main.wasp file. The functions getVerificationEmailContent and getPasswordResetEmailContent currently only accept an object with a verificationLink. However, I would like to send emails in different languages based on a language field stored in one of my database tables. I've reviewed the documentation but couldn’t find a way to pass an extra parameter (e.g., the user's language) to these functions or to dynamically choose the email content based on the language. How can I extend or modify these functions so that they can output different email content depending on the language specified in my database? Any guidance or pointers would be greatly appreciated. Thank you!
9 replies