惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Help Net Security
G
Google Developers Blog
aimingoo的专栏
aimingoo的专栏
博客园 - 聂微东
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件
Stack Overflow Blog
Stack Overflow Blog
美团技术团队
博客园_首页
T
Tailwind CSS Blog
博客园 - 三生石上(FineUI控件)
B
Blog
D
DataBreaches.Net
腾讯CDC
C
Check Point Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
U
Unit 42
月光博客
月光博客
V
V2EX
Vercel News
Vercel News
T
The Blog of Author Tim Ferriss
The Cloudflare Blog
博客园 - 叶小钗
Y
Y Combinator Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
I shipped a Pomodoro app in 39 languages as a solo dev — ...
Yoshiaki Hirokawa · 2026-06-27 · via DEV Community

Yoshiaki Hirokawa

Most indie apps ship in English, maybe add a handful of "big" languages later, and call it done. I went the other way: Cadento, my SwiftUI Pomodoro/focus timer, launched in 39 languages on day one — including ones most apps never touch, like Catalan, Croatian, Malay, Hebrew, Thai, and Ukrainian.

This post is the honest version of how that went: the setup that made it possible, the things that broke, and whether it was worth it.

Cadento is built with SwiftUI + SwiftData, targets iOS 18 / watchOS 11, and has Live Activities, widgets, an Apple Watch app, an activity heatmap, and iCloud sync. App Store: https://apps.apple.com/app/id6784636854

Why 39 languages, not 5

The usual advice is "localize into the top languages and measure." That's reasonable. But for a focus timer, the UI vocabulary is small and stable — "Start", "Focus", "Break", "Tasks", "Today", "Streak". Once I had a clean localization pipeline, the marginal cost of language #20 was close to zero. And every additional language is a market where almost no competitor has a localized listing.

So the real question wasn't "is each language worth it?" — it was "can I make adding a language nearly free?" If yes, you do all of them.

The foundation: one .xcstrings file

The whole thing rests on Xcode's String Catalog (.xcstrings), introduced in Xcode 15. Instead of one Localizable.strings per language, you get a single JSON file with the source language and every translation nested under each key:

{
  "sourceLanguage" : "en",
  "strings" : {
    "timer.start" : {
      "localizations" : {
        "en" : { "stringUnit" : { "state" : "translated", "value" : "Start" } },
        "ja" : { "stringUnit" : { "state" : "translated", "value" : "開始" } },
        "ar" : { "stringUnit" : { "state" : "translated", "value" : "ابدأ" } }
      }
    }
  }
}

Why this matters for a solo dev:

  • One file is diffable, scriptable, and reviewable. No 39 files drifting out of sync.
  • Each translation carries a statenew vs translated — so you can programmatically find every untranslated key across all languages.
  • In code you just use the key. No NSLocalizedString boilerplate spread everywhere.

That state field turned out to be the single most useful thing in the entire workflow. It's a built-in to-do list.

The actual locale list

39 isn't a round marketing number — it maps to real App Store storefronts, including regional variants where the wording genuinely differs:

en, en-GB, en-AU,
ar, ca, cs, da, de, el, es, es-419, fi, fr, fr-CA, he, hi, hr, hu,
id, it, ja, ko, ms, nb, nl, pl, pt-BR, pt-PT, ro, ru, sk, sv,
th, tr, uk, vi, zh-Hans, zh-Hant, zh-HK

Note the regional splits: es vs es-419 (Spain vs Latin America), pt-BR vs pt-PT, zh-Hans/zh-Hant/zh-HK. These aren't vanity — a button label or a date phrasing that's correct in São Paulo can read slightly off in Lisbon.

What actually broke

Localizing isn't translating strings. It's everything around the strings.

1. Layout overflow. German and Finnish expand text by 30–40%. A button that fit "Start" in English clipped its label in German. The fix is boring but mandatory: stop hard-coding widths, let SwiftUI size to content, and test the longest language, not the shortest. German is your stress test.

2. Right-to-left. Arabic and Hebrew flip the entire layout. SwiftUI handles a lot automatically if you use leading/trailing instead of left/right — but custom drawing (progress rings, the heatmap) needed explicit attention so it didn't mirror into nonsense.

3. Dates, numbers, plurals. Never build a string like "\(count) sessions". Plural rules differ wildly (Arabic has six plural categories). String Catalog supports plural variations per language — use them, or your "1 sessions" will haunt you.

4. The "translated but wrong" trap. A state: translated flag means a translation exists, not a good one. For high-traffic UI I had key phrases reviewed; for the long tail I accepted "good enough and fixable." Being honest about that tradeoff is the only way 39 languages is sustainable solo.

Was it worth it?

For a focus timer with a small, stable vocabulary: yes, clearly. The cost was front-loaded into building the pipeline once. After that, the app shows up localized in storefronts where every competitor is English-only — and "this app speaks my language" is a real conversion lever in places the big apps ignore.

If your app has a sprawling, constantly-changing text surface (think a social app with dynamic content), the math is different and you should be more selective.

Takeaways

  • Use the String Catalog (.xcstrings). One file, scriptable, with per-string translation state.
  • Let the state field be your untranslated-work tracker.
  • Test German/Finnish for overflow, Arabic/Hebrew for RTL — those four catch most layout bugs.
  • Never concatenate counts into strings. Use plural variations.
  • Decide your quality bar per tier (core UI vs long tail) and be honest about it.

If you want the deeper writeup — including how I auto-generated localized App Store screenshots for all 39 languages — that's the next post.


I'm a solo iOS developer from Japan building small, deeply localized apps. Cadento (focus timer, 39 languages) is on the App Store. Happy to answer i18n questions in the comments.