File size: 231 Bytes
3ca116b
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
codes_as_string = '''فارسی	pes_Arab
کردی	ckb_Arab'''

codes_as_string = codes_as_string.split('\n')

flores_codes = {}
for code in codes_as_string:
    lang, lang_code = code.split('\t')
    flores_codes[lang] = lang_code