Lightweight translator of XML language files.
Find a file
2024-05-10 07:43:25 +02:00
Cli V2 2024-05-10 07:42:57 +02:00
.env.example Added logic for specific XML file 2024-05-09 16:25:03 +02:00
.gitignore Added logic for specific XML file 2024-05-09 16:25:03 +02:00
LICENSE Initial commit 2024-05-09 14:46:35 +02:00
README.md Update README.md 2024-05-09 16:34:18 +02:00
XmlTranslator.sln Added initital project 2024-05-09 14:49:17 +02:00

XmlTranslator

This has currently been tested to be able to translate this xml file:

<?xml version='1.0' encoding='UTF-8'?>
<labels>
    <entry key='key1'>value1</entry>
</label>

You can use it by navigating to the project root and running the following command:

dotnet run --project Cli filePath.xml languageCode interval

Where filePath.xml is the path to the xml file you want to translate, languageCode is the language code you want to translate to, and interval is the interval of lines you want to be written to the output file at a time.

This is an example of how you can use it:

dotnet run --project Cli SampleData/labels.xml es 50

This will translate the labels.xml file to Spanish and write the output to Output\labels_es_timestamp.xml with 50 lines per interval.

Enjoy!