Export your app's strings from a spreadsheet
Many teams keep their app's text in a spreadsheet: one row per string, one column per language. sheet-strings-export turns that sheet into the files your code reads. It is free and open source (MIT licence), has no dependencies and runs on Node 18 or later.
Download sheet-strings-export.zip (source, README and licence). SHA-256: 3ab2cf505a22b047d275c69e15e208faa2186582d05b9dca71ca06fe53c9e933
Free, open source (MIT), provided as is, without warranty.
Five formats
--format | Output |
|---|---|
json | one flat JSON file per locale (en.json), the i18next and vue-i18n shape |
json-nested | one JSON file per locale, nested by the dots in the keys |
arb | Flutter ARB (app_en.arb), with descriptions and ICU placeholders on the source locale |
xcstrings | an Apple String Catalog (.xcstrings) file, Localizable.xcstrings, holding every locale |
android | Android values/strings.xml, values-fr/strings.xml and so on |
The sheet
Row 1 is the header: a key column, optional description and max length columns, then one column per locale (en, fr, pt-BR, zh-Hans…). The first locale column is the source language.
| key | description | en | fr |
|---|---|---|---|
| home.title | Main screen title | Home | Accueil |
| greeting | Shown on login | Hello, {name} | Bonjour, {name} |
Run it
Unzip the download, then from its folder, with the tab downloaded as CSV (File → Download → Comma-separated values) or a link to a sheet published to the web as CSV:
node cli.mjs strings.csv --format arb --out lib/l10n node cli.mjs "https://docs.google.com/spreadsheets/d/<id>/export?format=csv&gid=0" --format android --out app/src/main/res node cli.mjs strings.csv --format json --locales en,fr --out public/locales
What it does with odd cases
- A missing translation is left out of that locale's file, never copied from the source language; your framework's fallback handles it.
- Keys are renamed where a format needs it (
home.titlebecomeshomeTitlein ARB,home_titleon Android), and two keys that collide are reported, not merged. - Placeholders are copied as written; Android strings with several unnumbered
%sare reported, because its build wants%1$s,%2$s. - Every note is printed after the export.
Inside the spreadsheet
The same exporter runs inside Google Sheets as our add-on i18n String Catalog, which also imports existing files into the sheet, checks for missing translations, placeholder mismatches and strings over their max length, and downloads every locale at once.
i18n String Catalog, by Sweekly Apps LLC