/oss · 5 merged

translate/translate

The Translate Toolkit, tools and a Python API for converting and checking translation files.

the project on GitHub (opens in a new tab)
  1. 26 Nov 2026

    YAML values next to translated text come back as they were

    What was broken
    Converting translations back to YAML dropped decimal numbers and dates that sat next to translated text, so the finished locale file lost settings it had before.
    What I changed
    The converter now copies those values from the original file and puts them back in place.
    Why it matters
    Rails and Hugo locale files keep every value after a round of translation.

    see the code, #6778 (opens in a new tab)

  2. 23 Nov 2026

    YAML files with numbers or dates convert again

    What was broken
    A single decimal number or date anywhere in a YAML translation file stopped the converter, and no translation file was made.
    What I changed
    I made the converter skip those values and keep them as they are when writing back.
    Why it matters
    Locale files from Rails, Jekyll or Hugo can be translated without edits.

    see the code, #6748 (opens in a new tab)

  3. 20 Nov 2026

    A test for PHP texts split across lines

    What was broken
    PHP translation files that split one text over several lines with a join were read wrong, and the bug had no test to stop it coming back.
    What I changed
    A test now checks that such a text reads as one string and is written back correctly.
    Why it matters
    The fix for these files stays fixed in future releases.

    see the code, #6725 (opens in a new tab)

  4. 16 Nov 2026

    JSON files with numbers or true/false convert again

    What was broken
    A single number or true/false value anywhere in a JSON translation file made the converter skip the whole file.
    What I changed
    The converter now skips those values and keeps going, and puts them back when converting back.
    Why it matters
    Common app translation files can be used without editing them first.

    see the code, #6715 (opens in a new tab)

  5. 10 Nov 2026

    Backslashes no longer double on each CSV round trip

    What was broken
    Converting translations to CSV and back doubled every backslash, and doubled it again each time, so changed strings stopped matching and showed as untranslated.
    What I changed
    The CSV writer no longer adds an escape character the reader does not expect.
    Why it matters
    Translators can edit strings in a spreadsheet without breaking them.

    see the code, #6690 (opens in a new tab)

← every project