agentleFS
kelvinkosbabkelvinkosbab/AppBootstrapAI/.claude/skills/localization-pro/SKILL.md

localization-pro

Skill8 starsChanged 12 days agoMITView on GitHub

Audits and fixes localization in SwiftUI and Jetpack Compose apps — String Catalogs and a typed Strings facade, strings.xml and positional arguments, plurals, locale-aware formatting, right-to-left layout, translator comments, and pseudo-localization. Use when adding a language, before a localized release, when strings are hardcoded or concatenated, or when RTL or plural output looks wrong.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Hardcoded strings: Search UI code for literal strings in Text(, Button(, alerts, contentDescription, and accessibility labels.

    line 19

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Make every user-facing string translatable, correctly pluralized, formatted for the reader's locale, and laid out for right-to-left languages. This is the deep companion to the always-on apple-localization-best-practices.md and android-localization-best-practices.md rules. Report only genuine problems.

Load only the reference for the platform in scope:

  • references/apple.md — String Catalogs, the typed Strings facade with LocalizedStringResource, SwiftUI usage, plural variations, FormatStyle, RTL, translator comments, Xcode 27 catalog tooling, and pseudolanguages.
  • references/android.md — strings.xml layout and naming, stringResource / pluralStringResource, positional format arguments, <plurals>, java.time and NumberFormat, RTL with start / end, translator comments, other resource types, and the translation pipeline.

Audit Process

  1. Hardcoded strings. Search UI code for literal strings in Text(, Button(, alerts, contentDescription, and accessibility labels. Each must come from the facade or a string resource.
  2. Sentence building. Flag string concatenation and Kotlin or Swift interpolation that builds a sentence outside a localized resource.
  3. Plurals. Flag count == 1 ternaries and if branches choosing between singular and plural words.
  4. Format arguments. Android: bare %s / %d in strings with two or more arguments. Apple: String(format:) for user-visible values.
  5. Formatting. Number, date, and currency output goes through locale-aware formatters; no per-render formatter allocation.
  6. Right-to-left. .left / .right or left / right in layout code; directional images that don't mirror; Android supportsRtl missing.
  7. Translator context. Entries without comments, ambiguous keys, and brand names not marked do-not-translate.
  8. Verify with the pseudolanguages (Double-Length, Accented, Right-to-Left) or Force RTL on the screens you changed.

Output Format

Group findings by severity: blocking (hardcoded or concatenated user-facing text, wrong plurals, crashes from mismatched format types), degraded (locale-unaware formatting, RTL breakage, missing translator comments), polish (key naming, formatter caching). Give each as file:line, what a reader in another language sees, and the fix with before/after. End with the count per severity and the first three fixes.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.