mololab / json-translator

jsontt 💡 - AI JSON Translator + other FREE translation modules to translate your json/yaml files into other languages ✅ Check Readme ✌
https://mololab.org/jsontt/npm
MIT License
427 stars 53 forks source link

Add yaml support #40

Closed Myshkouski closed 7 months ago

Myshkouski commented 10 months ago

Localization files are often formatted with YAML. This changes allows to use .yml and .yaml files in the same way as .json:

# Generates output files with the same extension as source file
╰─ ./bin/jsontt test/en.yml --from en --to de mk --translator bing                                                                                                                  ─╯
° Translating. Please wait. 0 of 2 translated. 
O Translating. Please wait. 0 of 2 translated. 
✔ DONE! 2 of 2 translated.
 All files are created! You can find them in the same folder as the original file. 
 For Macedonian --> /mk.yml created. 
 For German --> /de.yml created. 
ParvinEyvazov commented 10 months ago

Hi @Myshkouski

Great! I will add this feature to the next version for just now making a stable version.

Thank you!

ParvinEyvazov commented 7 months ago

Released on v1.10.0. Thank you for your contribution @Myshkouski :)