def METHOD_NAME(repo_dir=os.path.dirname(os.path.abspath(__file__)) + '/../..'):
    base_path = os.path.expanduser(repo_dir)
    for langId in Language.Codes:
        code = Language.Codes[langId]
        langObject = getLanguage(langId)
        result = parseLanguage(langObject['HattrickData'], code)
        output = XMLParser.python_to_json({'language': result})
        of = '%s/content/locale/%s/htlang.json' % (base_path, code)
        o = codecs.open(os.path.expanduser(of), mode='w', encoding='utf-8')
        o.write(output)
        o.close()