<?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: Francis Okocha-Ojeah</title>
    <description>The latest articles on DEV Community by Francis Okocha-Ojeah (@francisojeah).</description>
    <link>https://dev.to/francisojeah</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%2F1556094%2Ffedd33f9-23f5-4321-a96d-fbdb7808bd49.jpg</url>
      <title>DEV Community: Francis Okocha-Ojeah</title>
      <link>https://dev.to/francisojeah</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/francisojeah"/>
    <language>en</language>
    <item>
      <title>I built a CLI to catch i18n bugs. It found 74 issues in my own app before they shipped</title>
      <dc:creator>Francis Okocha-Ojeah</dc:creator>
      <pubDate>Sun, 10 May 2026 10:50:42 +0000</pubDate>
      <link>https://dev.to/francisojeah/i-built-a-cli-to-catch-i18n-bugs-it-found-74-issues-in-my-own-app-before-they-shipped-14jk</link>
      <guid>https://dev.to/francisojeah/i-built-a-cli-to-catch-i18n-bugs-it-found-74-issues-in-my-own-app-before-they-shipped-14jk</guid>
      <description>&lt;p&gt;We ship a React Native app in English and Portuguese. Every other release, someone would find a hardcoded English string or a missing translation key. Manual audits were slow, inconsistent, and honestly, error-prone.&lt;/p&gt;

&lt;p&gt;I was tired of it.&lt;/p&gt;

&lt;p&gt;So I built &lt;code&gt;locale-lint&lt;/code&gt;. A zero‑config CLI that scans your entire codebase and catches the stuff we usually miss.&lt;/p&gt;

&lt;p&gt;I ran it on our production app. In less than half a second, it found &lt;strong&gt;74 issues&lt;/strong&gt; that I had completely overlooked. Keys that existed in English but not Portuguese. Labels that were still raw English. Stuff that &lt;em&gt;would have shipped&lt;/em&gt; in the next release.&lt;/p&gt;

&lt;p&gt;Here’s exactly what it flagged in our app:&lt;/p&gt;

&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%2Fuiuzil5wwueqoj1zoflx.jpeg" 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%2Fuiuzil5wwueqoj1zoflx.jpeg" alt="locale-lint terminal output" width="800" height="484"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What it detects
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Missing keys&lt;/strong&gt; — e.g. English key missing from Portuguese&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Unused keys&lt;/strong&gt; — can be safely cleaned up&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Undefined keys&lt;/strong&gt; — called in code but missing from all locale files&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hardcoded text&lt;/strong&gt; — raw strings in JSX like &lt;code&gt;&amp;lt;Text&amp;gt;Welcome&amp;lt;/Text&amp;gt;&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Interpolation mismatches&lt;/strong&gt; — e.g. &lt;code&gt;{{name}}&lt;/code&gt; in EN but &lt;code&gt;{nome}&lt;/code&gt; in PT&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why I’m sharing this
&lt;/h2&gt;

&lt;p&gt;If you’re building a React, Next.js, or React Native app with any of these libraries, this works out of the box:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;i18next / react-i18next&lt;/li&gt;
&lt;li&gt;next-intl&lt;/li&gt;
&lt;li&gt;i18n-js&lt;/li&gt;
&lt;li&gt;react-intl / FormatJS&lt;/li&gt;
&lt;li&gt;vue-i18n&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No config needed. Just run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx locale-lint check
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It auto‑detects your locale files and source folders. Under 500ms even on a decently sized app. Exits with code &lt;code&gt;1&lt;/code&gt; if issues are found, so you can throw it straight into CI.&lt;/p&gt;

&lt;p&gt;It’s open source (MIT).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/francisojeah/locale-lint" rel="noopener noreferrer"&gt;https://github.com/francisojeah/locale-lint&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;npm: &lt;a href="https://www.npmjs.com/package/locale-lint" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/locale-lint&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Hopefully it saves someone else the same headache.&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>i18n</category>
      <category>cli</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
