Sign up free

Translate JSON, YAML and PO Files

Translate app language files and keep every key, so the new locale drops straight into your project.

or drop files here

Accepts JSON, YAML, PO, POT

Encrypted upload. Files are deleted automatically after 1 hour.

About Translate JSON and PO Files

Translate JSON, YAML and PO files when your app or website needs another language. Locale files for i18next, vue-i18n, Rails or gettext are full of keys your code depends on. Every key and the structure of the file stay exactly as they are, and only the text values are translated, so the new file sits right next to your existing locales. Your README and docs can follow with Translate TXT, Markdown and HTML, which protects code and links.

Placeholders such as {name}, {{count}} or %s, URLs and values that look like codes, colors or file names are left alone. Set the target language under Translate to; the source language is detected, or you can name it under More options. Short interface strings like Save, Open or Close depend on context, so test the new language in the app itself before you ship.

How to use Translate JSON and PO Files

  1. 1
    Upload the language file

    Choose a .json, .yaml, .yml, .po or .pot file, or drop it on the page.

  2. 2
    Choose the new locale

    Set Translate to, and open More options if you want to name the source language.

  3. 3
    Run the translation

    Press Translate JSON and PO Files. Keys are kept and only the values change.

  4. 4
    Add it to your project

    Save the file in your locale folder and test the app in the new language.

Why use Cubfile for this

  • Every key preserved

    Keys and nesting stay as they are, so your code still finds every string.

  • JSON, YAML and PO

    Locale files from JavaScript frameworks, Rails and gettext projects are all accepted.

  • Placeholders protected

    {name}, {{count}}, %s and similar placeholders come back exactly where they were.

  • Your code stays home

    Only the language file is uploaded, and it's deleted automatically one hour later.

FAQ

Translate JSON and PO Files: questions and answers

Will my keys change when I translate JSON files?
No. Keys and structure are kept as they are, and only the text values are translated. If your strings live in a spreadsheet instead, Translate Excel translates the cell text.
Can I translate PO files for WordPress or Django?
Yes. Upload the .po or .pot file and choose the language, and every msgstr is filled in, plural forms included. Afterwards, compile it into an .mo file with your usual tool, such as Poedit or msgfmt.
What about placeholders like {name} or %s?
They're protected and come back unchanged. Still test strings with placeholders, HTML or plural forms in your app before release.
Is it free to translate YAML locale files?
A free account can translate 2 files a day, up to 40,000 characters of text each. VIP has no daily limit, for frequent releases.
Is my source code exposed?
Only the language file is uploaded, over HTTPS. It's processed in an isolated task, deleted automatically after one hour and never used to train AI.
Share Translate JSON and PO Files with a friendIt runs in any browser, and they can try it without signing up.

Related tools

DOC Document TranslatorTranslate PDF, Word, Excel, PPT, subtitles, e-books and more, layout kept.
TXT Text TranslatorTranslate text between 70 languages, with voice input and read-aloud.
PDF Translate PDFTranslate PDFs into another language with the layout kept.
PDF Bilingual PDF TranslatorSoonGet the original and the translation side by side, paragraph by paragraph.
JPG Translate ImageSoonTranslate the text in images and screenshots and put it back in place.
SRT Translate SubtitlesTranslate SRT, VTT and ASS subtitles with timing intact, bilingual if you like.
DOC Translate WordTranslate Word documents with styles, tables and images intact.
MP3 Voice TranslatorSpeak and hear the translation; a two-way conversation mode for travel and meetings.