Sweekly Apps

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

--formatOutput
jsonone flat JSON file per locale (en.json), the i18next and vue-i18n shape
json-nestedone JSON file per locale, nested by the dots in the keys
arbFlutter ARB (app_en.arb), with descriptions and ICU placeholders on the source locale
xcstringsan Apple String Catalog (.xcstrings) file, Localizable.xcstrings, holding every locale
androidAndroid 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.

keydescriptionenfr
home.titleMain screen titleHomeAccueil
greetingShown on loginHello, {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

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