Skip to content

Add language specific supabase template#1070

Merged
ebma merged 11 commits into
stagingfrom
add-language-specific-supabase-template
Feb 20, 2026
Merged

Add language specific supabase template#1070
ebma merged 11 commits into
stagingfrom
add-language-specific-supabase-template

Conversation

@ebma
Copy link
Copy Markdown
Member

@ebma ebma commented Feb 18, 2026

  • Adds support for sending the locale when requesting the OTP to adjust the language of the email template.
  • The frontend is passing the locale based on the currently selected language
  • The backend stores that locale on the raw_user_meta_data of the user profile. It's updated/overridden each time a new OTP is requested.

@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 18, 2026

Deploy Preview for vortexfi ready!

Name Link
🔨 Latest commit 422f44e
🔍 Latest deploy log https://app.netlify.com/projects/vortexfi/deploys/6996ec7e4d28580008b3b0e2
😎 Deploy Preview https://deploy-preview-1070--vortexfi.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ebma ebma requested a review from a team February 18, 2026 17:25
@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 18, 2026

Deploy Preview for vortex-sandbox ready!

Name Link
🔨 Latest commit 422f44e
🔍 Latest deploy log https://app.netlify.com/projects/vortex-sandbox/deploys/6996ec7e927ad300086f67b3
😎 Deploy Preview https://deploy-preview-1070--vortex-sandbox.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds Portuguese (Brazilian) localization support for authentication email templates. When a user creates a quote using BRL as either input or output currency, the system detects this on the frontend and passes a "pt-BR" locale parameter through the authentication flow. The backend then includes this locale in the Supabase OTP request, which causes the email templates (signup and magic link) to render in Portuguese instead of English.

Changes:

  • Added locale parameter support throughout the authentication flow (frontend → API → Supabase)
  • Implemented conditional Portuguese/English rendering in both email templates based on locale
  • Frontend automatically detects BRL currency usage and sets locale to "pt-BR"

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 25 comments.

Show a summary per file
File Description
apps/frontend/src/services/api/auth.api.ts Added optional locale parameter to requestOTP method
apps/frontend/src/machines/actors/auth.actor.ts Implemented BRL currency detection logic to determine pt-BR locale
apps/api/src/api/controllers/auth.controller.ts Added locale validation and pass-through to auth service
apps/api/src/api/services/auth/supabase.service.ts Modified sendOTP to accept and pass locale to Supabase with default fallback
supabase/templates/signup.html Added Portuguese translations and conditional rendering based on locale
supabase/templates/magic_link.html Added Portuguese translations and conditional rendering based on locale

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread supabase/templates/magic_link.html Outdated
Comment thread supabase/templates/magic_link.html Outdated
Comment thread apps/api/src/api/services/auth/supabase.service.ts Outdated
Comment thread supabase/templates/signup.html Outdated
Comment thread supabase/templates/signup.html Outdated
Comment thread apps/api/src/api/services/auth/supabase.service.ts
Comment thread supabase/templates/signup.html Outdated
Comment thread supabase/templates/signup.html Outdated
Comment thread supabase/templates/magic_link.html Outdated
Comment thread supabase/templates/magic_link.html Outdated
Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 18, 2026

@ebma I've opened a new pull request, #1071, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 6 commits February 18, 2026 17:38
Co-authored-by: ebma <6690623+ebma@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Fix missing diacritics in Portuguese email templates
for determining the language instead of the quote input/output currency
@ebma ebma merged commit 9805c27 into staging Feb 20, 2026
5 checks passed
@ebma ebma deleted the add-language-specific-supabase-template branch February 20, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants