<?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: DEMON BACK</title>
    <description>The latest articles on DEV Community by DEMON BACK (@demonback).</description>
    <link>https://dev.to/demonback</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4263675%2F64126eee-e4af-4f78-8871-52df7f604a6b.png</url>
      <title>DEV Community: DEMON BACK</title>
      <link>https://dev.to/demonback</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/demonback"/>
    <language>en</language>
    <item>
      <title>Eight languages, one key set: the i18n tests that caught what translation missed</title>
      <dc:creator>DEMON BACK</dc:creator>
      <pubDate>Sat, 28 Nov 2026 07:43:02 +0000</pubDate>
      <link>https://dev.to/demonback/eight-languages-one-key-set-the-i18n-tests-that-caught-what-translation-missed-2e67</link>
      <guid>https://dev.to/demonback/eight-languages-one-key-set-the-i18n-tests-that-caught-what-translation-missed-2e67</guid>
      <description>&lt;p&gt;Last week I wrote about getting a vision model to score a back photo without lying to the user. The follow-up turned out to be about everything except the model: eight languages, a consent screen, and a legal page that has to say exactly what the app collects.&lt;/p&gt;

&lt;p&gt;The product in one line: upload a photo of your back, a rubric scores six back regions into a 0-100 number, and you climb seven tiers. Web, installable PWA, free.&lt;/p&gt;

&lt;h2&gt;
  
  
  i18n is mostly a layout problem
&lt;/h2&gt;

&lt;p&gt;Eight locales: &lt;code&gt;ko&lt;/code&gt;, &lt;code&gt;en&lt;/code&gt;, &lt;code&gt;ja&lt;/code&gt;, &lt;code&gt;es&lt;/code&gt;, &lt;code&gt;pt-BR&lt;/code&gt;, &lt;code&gt;de&lt;/code&gt;, &lt;code&gt;fr&lt;/code&gt;, &lt;code&gt;id&lt;/code&gt;. One JSON file per locale, one &lt;code&gt;t(key, vars)&lt;/code&gt; helper, around 636 keys each.&lt;/p&gt;

&lt;p&gt;Translation was the easy half. Two things were not:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Long words.&lt;/strong&gt; German and Portuguese strings run 30-40% longer. The header language picker had to fit beside the logo at 390px, so it became a compact popover instead of a wide select, and there is now a check that no main screen scrolls horizontally at 384px and 390px.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Copy that quietly reverts.&lt;/strong&gt; A pre-check screen ("photo too dark", "subject too small") was hard-coded in Korean and stayed Korean for English users. It is keyed now, with a regression test that fails if those five messages come back in Korean.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The tests that caught things
&lt;/h2&gt;

&lt;p&gt;The unit tests are boring on purpose, and they caught real defects:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Key parity.&lt;/strong&gt; Every locale must have exactly the same key set as Korean. Adding a key in one language and forgetting the rest fails the build, not the user.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No empty strings&lt;/strong&gt;, in any locale.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Placeholder parity.&lt;/strong&gt; A &lt;code&gt;{n}&lt;/code&gt; in Korean must exist in all eight languages, so no string renders as "top % of league".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No Korean leaking into &lt;code&gt;es/pt-BR/de/fr/id&lt;/code&gt;&lt;/strong&gt;, with one documented exception for the operator label.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No medical or guarantee wording&lt;/strong&gt; in the five newer languages: no "diagnose", no "guarantee", no body-fat claims. That one is a product decision written as a test.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Consent hash.&lt;/strong&gt; The final-round consent text is hashed on the client and compared with the hash the server stores, so the text a user agreed to cannot drift away from the text the server thinks they agreed to.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Legal copy is product copy
&lt;/h2&gt;

&lt;p&gt;The first consent screen described a nice app. The second described this app: a photo sent to the scoring function, a score, a tier, a weekly quota, and what survives after a scan. Writing it as a table of "field, why we hold it, where it lives" changed three UI decisions before the copy was finished: what the camera screen asks for, what gets logged, and what gets deleted.&lt;/p&gt;

&lt;p&gt;Two small fixes came out of the same pass. The legal pages render one &lt;code&gt;h1&lt;/code&gt; instead of a heading per section (one heading per page is both the a11y and the review-friendly answer), and being an SPA, the document title now changes per document instead of staying on the app name.&lt;/p&gt;

&lt;h2&gt;
  
  
  The gap I did not close
&lt;/h2&gt;

&lt;p&gt;The privacy policy and the terms exist in Korean and English only. The other six locales render the English document while the UI stays in their own language. I know exactly how that reads to a reviewer in Germany, and I would rather write it here than have someone find it in a store review. Native review of both the legal text and the UI copy is the next item on the list.&lt;/p&gt;

&lt;h2&gt;
  
  
  Switches before growth
&lt;/h2&gt;

&lt;p&gt;Before pointing any traffic at the app:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;AI_SCORING_DISABLED&lt;/code&gt; turns scoring off without a deploy.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;AI_COST_CUT&lt;/code&gt; keeps the feature but takes the cheap path.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;AI_MAX_CALLS_PER_MINUTE&lt;/code&gt; and &lt;code&gt;AI_MAX_CALLS_PER_HOUR&lt;/code&gt; cap the damage.&lt;/li&gt;
&lt;li&gt;Any origin that is not the live one gets &lt;code&gt;403 origin_not_allowed&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Weekly quotas (1 ranked scan, 3 practice scans) live in Postgres, not in the client.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One thing I got wrong at first: a weekly quota needs a timezone. Ours resets Monday 00:00 in the user's local time, because a user in Seoul hitting "new week" at 09:00 Monday is a bug report waiting to happen.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I want to know
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;If you ship i18n, do you gate deploys on key parity, or on a translation-completeness percentage?&lt;/li&gt;
&lt;li&gt;Has anyone found a workflow for reviewing legal translations that is not "one lawyer per language"?&lt;/li&gt;
&lt;li&gt;For a solo project, where is the line between env-var kill switches and a feature-flag service?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want to see how long German headings get, the eight-language picker is in the header: &lt;a href="https://demon-back.vercel.app" rel="noopener noreferrer"&gt;https://demon-back.vercel.app&lt;/a&gt;&lt;/p&gt;

</description>
      <category>i18n</category>
      <category>webdev</category>
      <category>showdev</category>
      <category>testing</category>
    </item>
    <item>
      <title>Getting a vision model to score a back photo without lying to the user</title>
      <dc:creator>DEMON BACK</dc:creator>
      <pubDate>Wed, 25 Nov 2026 02:20:45 +0000</pubDate>
      <link>https://dev.to/demonback/getting-a-vision-model-to-score-a-back-photo-without-lying-to-the-user-4h9h</link>
      <guid>https://dev.to/demonback/getting-a-vision-model-to-score-a-back-photo-without-lying-to-the-user-4h9h</guid>
      <description>&lt;p&gt;I shipped a small web app called DEMON BACK: you take a photo of your back, a vision model rates six muscle groups, and you get a 0-100 score plus one of seven tiers. It runs in the browser, installs as a PWA, and costs nothing.&lt;/p&gt;

&lt;p&gt;This post is the part that was actually hard: getting a general-purpose vision model to produce a number that does not swing wildly between two photos of the same person.&lt;/p&gt;

&lt;h2&gt;
  
  
  The shape of the problem
&lt;/h2&gt;

&lt;p&gt;The temptation is to ask the model for a score and trust it. That gives you a demo. It does not give you a ranking that people will accept.&lt;/p&gt;

&lt;p&gt;What worked better was splitting the job:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The model returns structured per-muscle judgments (visible development, definition, symmetry, confidence) instead of one number.&lt;/li&gt;
&lt;li&gt;The app computes the score from those judgments with per-league weights, so the weights are testable and tunable without touching the prompt.&lt;/li&gt;
&lt;li&gt;A percentile only appears when at least five people share your league; below that the app shows the absolute score and says so.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That third rule matters more than it looks. A percentile computed from three people is a lie with a decimal point.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bug 1: the silent zero
&lt;/h2&gt;

&lt;p&gt;Early scans sometimes came back as 0 with no error. The cause was not the model: the request did not include &lt;code&gt;responseSchema&lt;/code&gt;, so the response came back in a shape the parser did not expect, the parse failed, and the failure path returned a default score instead of an error.&lt;/p&gt;

&lt;p&gt;Two lessons, both boring and both expensive:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Send the schema, then validate against it before you read the values.&lt;/li&gt;
&lt;li&gt;Never let "could not parse" collapse into a valid-looking number. Fail loud, log the raw response.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Bug 2: a config value the model refused
&lt;/h2&gt;

&lt;p&gt;The second failure was &lt;code&gt;thinkingBudget: 0&lt;/code&gt;, passed to turn off extended reasoning and keep latency down. Some models accept it, this one rejected the request outright.&lt;/p&gt;

&lt;p&gt;The fix was to stop assuming that a parameter documented as optional is accepted everywhere, and to treat a provider error as a first-class branch with its own log line, not as a retry candidate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bug 3: rejecting real users
&lt;/h2&gt;

&lt;p&gt;This was the one that would have killed the app quietly. The first version rejected a lot of legitimate photos:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;mirror selfies shot over the shoulder&lt;/li&gt;
&lt;li&gt;dim gym lighting&lt;/li&gt;
&lt;li&gt;close-up shots of just the upper back&lt;/li&gt;
&lt;li&gt;tank tops, and people holding a towel&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A rejection is worse than a mediocre score, because the user has already done the work of lining up a photo. If the app says "try again" twice, they are gone.&lt;/p&gt;

&lt;p&gt;What changed: the model now gets explicit instructions about each of those cases, and the minimum confidence threshold moved down to 0.35 so that "I can see it, it is just not pretty" still scores.&lt;/p&gt;

&lt;p&gt;Then I measured instead of guessing. On real photos: a bodybuilder's back scored in the mid nineties, a mirror selfie scored in the high seventies, and every one of those returned a score with zero rejections. That spread is what I wanted. A model that scores everything high, or rejects the honest photos, is useless for tracking progress.&lt;/p&gt;

&lt;h2&gt;
  
  
  Percentiles, quotas, and other things users notice
&lt;/h2&gt;

&lt;p&gt;A few smaller decisions that came out of watching one real user use it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A rejected scan does not consume the weekly ranked slot. Charge for the thing that succeeded.&lt;/li&gt;
&lt;li&gt;Practice scans update your tier immediately, but only ranked scans count toward the leaderboard. Users understandably confuse the two, so the UI labels both in every place they can be confused.&lt;/li&gt;
&lt;li&gt;The score screen explains itself: a heat map of the six parts, the two weakest, and one or two exercises for each. The first feedback I got was "cool, but why 62 and what do I fix?" - that question is the product.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Sharing without touching the server
&lt;/h2&gt;

&lt;p&gt;The share output is drawn on the device with a canvas, not rendered server-side. Two sizes: a 1080x1350 card and a 1080x1920 story format. Sharing goes through the Web Share API with files, with a download fallback for browsers that do not support it.&lt;/p&gt;

&lt;p&gt;Doing it client-side means the back photo never has to be uploaded to make a card, and there is nothing to clean up afterwards.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I am not sure about yet
&lt;/h2&gt;

&lt;p&gt;I would rather hear it from people who lift than guess:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Seven tiers: real progression, or too many steps to feel a move?&lt;/li&gt;
&lt;li&gt;One ranked scan a week: does that make the leaderboard meaningful, or just annoying?&lt;/li&gt;
&lt;li&gt;The heat map and the "why this score" panel: does it read as coaching, or as decoration?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you want to try it: &lt;a href="https://demon-back.vercel.app" rel="noopener noreferrer"&gt;https://demon-back.vercel.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It is free, there is no download, and the only thing it needs is a photo of your back and a browser. Comments on the scoring logic especially welcome - that is the part I can still change cheaply.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
