<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Lovenly</title>
    <description>The latest articles on DEV Community by Lovenly (@doclaundal).</description>
    <link>https://dev.to/doclaundal</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3926403%2F8deeb646-da83-4ebd-9afd-59eb057467fb.png</url>
      <title>DEV Community: Lovenly</title>
      <link>https://dev.to/doclaundal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/doclaundal"/>
    <language>en</language>
    <item>
      <title>I shipped an international dating app with real-time message translation in 50+ languages — here's the stack</title>
      <dc:creator>Lovenly</dc:creator>
      <pubDate>Tue, 12 May 2026 06:51:41 +0000</pubDate>
      <link>https://dev.to/doclaundal/i-shipped-an-international-dating-app-with-real-time-message-translation-in-50-languages-heres-mip</link>
      <guid>https://dev.to/doclaundal/i-shipped-an-international-dating-app-with-real-time-message-translation-in-50-languages-heres-mip</guid>
      <description>&lt;h1&gt;
  
  
  I shipped Lovenly — an international dating app with live message translation in 50+ languages
&lt;/h1&gt;

&lt;p&gt;A while ago, I watched a friend trying to date someone in Tokyo. He spoke no Japanese. She spoke no French. They were doing the DeepL copy-paste dance every night, switching tabs, breaking the flow. He told me "I don't even know if she's funny anymore — the translation kills the timing."&lt;/p&gt;

&lt;p&gt;I'm a solo dev. I figured: real-time translation inside the chat shouldn't be a "premium" gimmick — it should be the product. So I built &lt;strong&gt;Lovenly&lt;/strong&gt; (&lt;a href="https://lovenly.online/first" rel="noopener noreferrer"&gt;lovenly.online&lt;/a&gt;) — an international dating site where the messaging layer &lt;em&gt;is&lt;/em&gt; the translation layer.&lt;/p&gt;

&lt;p&gt;This post is the &lt;strong&gt;honest stack write-up&lt;/strong&gt;. Brand new in production, so no big traffic numbers to wave around — just the technical choices and what bit me.&lt;/p&gt;




&lt;h2&gt;
  
  
  The stack
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Choice&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Framework&lt;/td&gt;
&lt;td&gt;Next.js 16 (App Router, RSC)&lt;/td&gt;
&lt;td&gt;Server components let me query Supabase server-side without an API layer. Streaming for &lt;code&gt;/messages&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DB + Auth + Storage + Realtime&lt;/td&gt;
&lt;td&gt;Supabase (Postgres)&lt;/td&gt;
&lt;td&gt;One vendor for the boring parts. RLS policies are non-negotiable for a dating app.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Styling&lt;/td&gt;
&lt;td&gt;Tailwind v4&lt;/td&gt;
&lt;td&gt;Fast. No CSS-in-JS overhead in RSC.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Translation&lt;/td&gt;
&lt;td&gt;Anthropic Claude API (Sonnet)&lt;/td&gt;
&lt;td&gt;Better idiomatic translations than Google/DeepL for short, casual messages with slang and emoji — especially FR↔JA, EN↔TH, RU↔ZH.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Payments&lt;/td&gt;
&lt;td&gt;Stripe&lt;/td&gt;
&lt;td&gt;Subscriptions + tax handled.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hosting&lt;/td&gt;
&lt;td&gt;Vercel (Hobby for now)&lt;/td&gt;
&lt;td&gt;Fine until traffic explodes.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Push&lt;/td&gt;
&lt;td&gt;Web Push + VAPID + service worker&lt;/td&gt;
&lt;td&gt;Native push on iOS PWA + Android Chrome + desktop without paying OneSignal.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The whole thing is &lt;strong&gt;TypeScript strict&lt;/strong&gt; with &lt;code&gt;tsc --noEmit&lt;/code&gt; on commit hook.&lt;/p&gt;




&lt;h2&gt;
  
  
  Architectural decisions that mattered
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. A translation cache table, keyed by &lt;code&gt;(source_lang, target_lang, body_hash)&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;Translation costs are real. A single match between FR and JA can rack up hundreds of messages. So I never translate the same message twice — even across different match conversations. &lt;code&gt;bio_translations&lt;/code&gt; table caches every translation forever. The cache is more useful for bios than for chat (bios get re-viewed by many people, chat is unique), but the marginal cost of the table is nothing.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Live translation is server-rendered, not streamed token-by-token
&lt;/h3&gt;

&lt;p&gt;I tried streaming. Looked great in dev. In production, the perceived latency was &lt;em&gt;worse&lt;/em&gt; because users saw words appearing piecemeal and it broke the "this person sent a message" mental model. Final answer: send → server translates fully → render once. Faster &lt;em&gt;feel&lt;/em&gt; even though same total time.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Onboarding is brutal on purpose
&lt;/h3&gt;

&lt;p&gt;5 steps: account → preferences → photos (min 1) → bio → publish. &lt;strong&gt;Email confirmation + ≥1 moderated photo is required before any like or message can be sent or received.&lt;/strong&gt; This kills a chunk of signups at the first photo step — and that's intentional. It also kills bots almost entirely.&lt;/p&gt;

&lt;p&gt;For beta, I have an &lt;code&gt;is_seed_bot&lt;/code&gt; flag with ~25 demo profiles per country to make the discovery feed not empty. They auto-decline matches, never message, never appear in "online now". Demo only, clearly marked in the schema.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Anti-scam pipeline lives in the &lt;code&gt;api_send_message&lt;/code&gt; Postgres RPC
&lt;/h3&gt;

&lt;p&gt;Before a row hits &lt;code&gt;messages&lt;/code&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;URLhaus check on every link&lt;/li&gt;
&lt;li&gt;Regex scan for IBAN, BTC/ETH/USDT wallets, credit card numbers → &lt;strong&gt;blocked&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Phone / email / Telegram / WhatsApp → flagged for client-side confirmation&lt;/li&gt;
&lt;li&gt;~50 scam keywords (crypto, "wallet", "investment", "send me money") → flagged&lt;/li&gt;
&lt;li&gt;Anthropic Claude toxicity assessment, score 0–10. ≥8 blocks. ≥5 flags.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Flagged messages &lt;strong&gt;auto-create a row in &lt;code&gt;reports&lt;/code&gt;&lt;/strong&gt; so moderators see them in &lt;code&gt;/admin/signalements&lt;/code&gt; immediately. Shipped that one this week — was the missing link between the AI flag and the human review queue.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. RLS is not "set it and forget it"
&lt;/h3&gt;

&lt;p&gt;Every column-restricted table has a separate &lt;code&gt;with check&lt;/code&gt; policy. Biggest gotcha I hit: &lt;code&gt;auth.uid()&lt;/code&gt; returns NULL inside the SQL context for some legacy HS256 tokens, even when &lt;code&gt;supabase.auth.getUser()&lt;/code&gt; returns a valid user. For sensitive writes the workaround is the service-role client server-side, but &lt;strong&gt;always re-verify&lt;/strong&gt; &lt;code&gt;photo.profile_id === user.id&lt;/code&gt; in TS before the write. Defense in depth.&lt;/p&gt;




&lt;h2&gt;
  
  
  Things I tried that didn't work
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CDN-edge translation&lt;/strong&gt; (Lingva, LibreTranslate): quality is fine for DE↔EN. For VI↔FR or KO↔FR it's unusable. Sticking with Claude.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Swipe-only UI&lt;/strong&gt;: I built a Tinder-style swipe deck. Kept it as an opt-in mode. International dating users want to &lt;em&gt;read&lt;/em&gt; profiles, not flick faces — so grid is the default.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auto-translate on display by default&lt;/strong&gt;: people who already speak both languages found it patronizing. Now it's opt-in per conversation with a one-click toggle.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  What I'm doing right now
&lt;/h2&gt;

&lt;p&gt;I'm running a launch promo: &lt;strong&gt;the first 100 sign-ups get 3 months of Lovenly Plus free&lt;/strong&gt; (~€12 value). Hard cap, no extension. The counter is live on the landing.&lt;/p&gt;

&lt;p&gt;Link: &lt;strong&gt;&lt;a href="https://lovenly.online/first" rel="noopener noreferrer"&gt;lovenly.online/first&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you're building something with i18n or messaging and you want to compare notes on Postgres RLS edge cases, Claude API caching strategies, or how I handle PII detection in chat — comments below. I read every one.&lt;/p&gt;




&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Voice messages with transcription + translation&lt;/strong&gt; (Whisper → Claude → text + audio). Half done.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Match suggestions ranked by language compatibility&lt;/strong&gt; (currently country + intent + age). Need to factor in shared language pairs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AdSense Management API integration&lt;/strong&gt; for the revenue dashboard widget (currently traffic-based estimation).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you read this far, thank you. Shipped this thing alone, in production, with real users. It's terrifying. If you're doing something similar drop a link in the comments — I'd love to see it.&lt;/p&gt;

&lt;p&gt;Cheers,&lt;br&gt;
Gabriel — &lt;a href="https://lovenly.online/first" rel="noopener noreferrer"&gt;lovenly.online&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>nextjs</category>
      <category>supabase</category>
      <category>sideprojects</category>
    </item>
  </channel>
</rss>
