The problem

Shipping an app in more languages means translating hundreds or thousands of short strings, keeping every placeholder working and repeating the work with each release. Doing it by hand does not scale, and sending files back and forth with a translation vendor slows releases down.

How Glossferry fits

  1. Read your source file (for example en.json) and flatten it to key and value pairs.
  2. Send the values in batches of up to 50 strings with the target language code.
  3. Check that placeholders survived, then write the target file next to the source.
  4. Run the script in CI and translate only new or changed keys.
js
const res = await fetch('https://api.glossferry.com/v1/translate', {
  method: 'POST',
  headers: { 'Authorization': `Bearer ${process.env.GLOSSFERRY_API_KEY}`, 'Content-Type': 'application/json' },
  body: JSON.stringify({ text: ['Save changes', 'Welcome back, {name}'], target_lang: 'DE', source_lang: 'EN' }),
});
const { translations } = await res.json();

A complete script with batching and placeholder checks is in the guide Translate i18n JSON files with an API. Laravel projects can use the lang file command.

What to watch for

  • Placeholders and plural syntax. {name}, %s, :id and ICU plural rules must survive. Validate them after every run.
  • Short strings without context. A single word such as "Save" can be a verb or a noun. Review the screens that matter most.
  • Text length. Translations are often longer than English. Test layouts in your longest language.
  • Review. Treat the output as a strong first draft, especially for legal and billing screens.

Cost example

An app with 2,000 strings of about 45 characters has roughly 90,000 source characters. At EUR 12.00 per million that is EUR 1.08 per language, or EUR 5.40 for five languages. Re-translating only changed strings keeps later runs far cheaper.