Skip to content
  • Hans-Christoph Steiner's avatar
    convert i18n files to JSON to support Weblate · 46bdb509
    Hans-Christoph Steiner authored
    ```python
    import yaml, json, glob
    
    for f in glob.glob('*.yaml'):
        print(f)
        with open(f) as fp:
            data = yaml.safe_load(fp)
        with open(f.replace('.yaml', '.json'), 'w', encoding='utf8') as fp:
            json.dump(data, fp, indent=2, ensure_ascii=False)
    ```
    46bdb509