All Languages

Yakup Ad
Yakup Ad
Aug 8, 2017 · 1 min read

Üzerinde çalıştığım projede Google/Yandex gibi çeviri araçlarının çeviri desteği verdiği dilleri kullanmam gerekti. Net bir sonuç alamayınca bu araçlardaki dilleri dizi haline getirmek için iş başa düştü. Belki size de lazım olabilir diye buraya bırakıyorum.

var countries = [“Afrikaans”,“Albanian”,“Amharic”,“Arabic”,“Armenian”,“Azerbaijani”,“Bashkir”,“Basque”,“Belarusian”,“Bengali”,“Bosnian”,“Bulgarian”,“Burmese”,“Catala”,“Cebuano”,“Chinese”,“Croatian”,“Czech”,“Danish”,“Dutch”,”Elvish (Sindarin)”,”English”,”Esperanto”,”Estonian”,”Finnish”,”French”,”Galician”,”Georgian”,”German”,”Greek”,”Gujarati”,”Haitian”,”Hebrew”,”Hill Mari”,”Hindi”,”Hungarian”,”Icelandic”,”Indonesian”,”Irish”,”Italian”,”Japanese”,”Javanese”,”Kannada”,”Kazakh”,”Khmer”,”Korean”,”Kyrgyz”,”Lao”,”Latin”,”Latvian”,”Lithuanian”,”Luxembourgish”,”Macedonian”,”Malagasy”,”Malay”,”Malayalam”,”Maltese”,”Maori”,”Marathi”,”Mari”,”Mongolian”,”Nepali”,”Norwegian”,”Papiamento”,”Persian”,”Polish”,”Portuguese”,”Punjabi”,”Romanian”,”Russian”,”Scottish Gaelic”,”Serbian”,”Sinhalese”,”Slovak”,”Slovenian”,”Spanish”,”Sundanese”,”Swahili”,”Swedish”,”Tagalog”,”Tajik”,”Tamil”,”Tatar”,”Telugu”,”Thai”,”Turkish”,”Udmurt”,”Ukrainian”,”Urdu”,”Uzbek”,”Vietnamese”,”Welsh”,”Xhosa”,”Yiddish”]

Buda bonus olarak firebase’e eklerkenki yazdığım küçük fonksiyonum :)

ref = FIRDatabase.database().reference()  for i in 0...self.countries.count-1{  self.ref.child("language").child("\(i)").setValue([           "id": i,           "name": self.countries[i]   ])
}
Yakup Ad

Written by

Yakup Ad

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade