def cyfieithu_testun(testun, peiriant, iaithffynhonnell, iaithtarged):
    translations = get_translations(testun, peiriant, iaithffynhonnell, iaithtarged)

    if not len(translations):
        return testun
   
    return translations[0]['translatedText']
Cyfieithu un llinell ar y tro
dataset/ETHPy150Open PorthTechnolegauIaith/moses-smt/tut/demo1.py/cyfieithu_testun