Home

Awesome

Simple .lng File Parser

This is a simple .lng file parser that can parse .lng files and output them in json format for translate the content.

More info

The .lng format is used in games from the German company HandyGames to store localized text and interface strings. This code was taken from a decompiled Java application.

Usage

Installing Dependencies

pip install deepl-cli

Arguments

Examples

  1. Parse a .lng file to json format:
python -m pylng example.lng --convert_to_json
  1. Translate the content of a json file:
python -m pylng example.json --translate
  1. Convert .json to .lng:
python -m pylng example.json