<?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: Hien Nguyen Duc</title>
    <description>The latest articles on DEV Community by Hien Nguyen Duc (@hien_nguyenduc_b509ac1b9).</description>
    <link>https://dev.to/hien_nguyenduc_b509ac1b9</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%2F3970175%2Fcda2031f-08ac-4de2-b4a0-90bad5351c46.png</url>
      <title>DEV Community: Hien Nguyen Duc</title>
      <link>https://dev.to/hien_nguyenduc_b509ac1b9</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hien_nguyenduc_b509ac1b9"/>
    <language>en</language>
    <item>
      <title>AI writes my code now, but it's quietly trashing my i18n translations. So I built a tool to fix it.</title>
      <dc:creator>Hien Nguyen Duc</dc:creator>
      <pubDate>Fri, 05 Jun 2026 16:34:00 +0000</pubDate>
      <link>https://dev.to/hien_nguyenduc_b509ac1b9/ai-writes-my-code-now-but-its-quietly-trashing-my-i18n-translations-so-i-built-a-tool-to-fix-it-18j7</link>
      <guid>https://dev.to/hien_nguyenduc_b509ac1b9/ai-writes-my-code-now-but-its-quietly-trashing-my-i18n-translations-so-i-built-a-tool-to-fix-it-18j7</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fewb6ea70klz848sqx5os.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fewb6ea70klz848sqx5os.webp" alt=" " width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Lately, I’ve been letting AI agents write a lot of my code. It’s incredibly fast, but I noticed a silent problem: it’s ruining my i18n setup.&lt;/p&gt;

&lt;p&gt;AI constantly makes these subtle mistakes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Hardcoding strings directly into UI elements (e.g., placeholder="Submit")&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Deleting components but leaving behind dead, orphaned translation keys&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Hallucinating namespaces that don't exist&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Standard grep or regex-based tools are blind to dynamic keys (t(benefit.key)) and framework-specific attributes. So, I built i18n-sharpen — an AST-based i18n linter that parses TS, JS, Vue, Svelte, and Astro like a real compiler.&lt;/p&gt;

&lt;p&gt;It runs locally or on your CI, catches missing/dead keys, and prevents hardcoded strings from ever reaching production. It’s essentially a guardrail that lets your AI code fast without accumulating tech debt.&lt;/p&gt;

&lt;p&gt;Read my full breakdown on why "AI-friendly codebases" need executable guardrails: &lt;a href="https://hiennguyen.io/en/blog/post/why-i-built-i18n-sharpen/" rel="noopener noreferrer"&gt;https://hiennguyen.io/en/blog/post/why-i-built-i18n-sharpen/&lt;/a&gt;&lt;br&gt;
Check out the open-source repo: &lt;a href="https://github.com/Schalkez/i18n-sharpen" rel="noopener noreferrer"&gt;https://github.com/Schalkez/i18n-sharpen&lt;/a&gt;&lt;/p&gt;

</description>
      <category>i18n</category>
      <category>react</category>
      <category>vue</category>
      <category>svelte</category>
    </item>
  </channel>
</rss>
