Free plan

Localization file convert

Convert translation files and compare languages side by side
POST
/v1/data/localization

About this tool

Apps and websites keep their translated texts in files such as JSON, PO, XLIFF, ARB, Android or iOS strings. This tool converts them between those formats. It can also put all languages side by side in one table, or split a table back into one file per language. It lists missing, extra and empty texts.
For example, you put English, German and French files into one table and see which texts are still untranslated.

How to use it

  1. Choose this tool.
  2. Add your translation files, one per language, with Upload or drag and drop.
  3. Choose the format you want as the result, or the table view.
  4. Check the language codes if they are not recognised, then press Generate.
  5. Download the result and read the problem list.

What you get back

You get converted files, or one table with all languages, plus a list of any problems found. Download it.
GOOD TO KNOW
The first file is the reference for the check. Plurals are kept as separate keys. At most 60 files. Counts as one conversion per file.
TEST IT LIVE

Try Localization file convert in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
Data
Plan
Free
Method
POST
Endpoint
/v1/data/localization
Tool ID
data.localization
Authentication
API key
Accepts
Text and settings
Background jobs
Yes
Usage group
Data
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/data/localization" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'files=@document.pdf' \
  -F 'from=auto' \
  -F 'to=table' \
  -F 'table_format=csv'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.data.localization({
    "files": 'document.pdf',
    "from": "auto",
    "to": "table",
    "table_format": "csv"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->data()->localization([
    'files' => 'document.pdf',
    'from' => 'auto',
    'to' => 'table',
    'table_format' => 'csv',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Convert translation files between JSON, Flutter ARB, gettext PO, XLIFF, Android strings.xml, iOS .strings, Java .properties and YAML; put several languages side by side in a table (or make a file per language from a table) and see missing keys, extra keys, empty texts and changed {placeholders}.

Localization file convert works from text and settings, so no file is needed. Every input is optional.

Localization file convert is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/data/localization with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.