Hoi, In a recent post I wrote the ISO-639 codes for Nyanja and Tswana. The information although correct was not complete; they have both two and three character codes within ISO-639.
Nyanja or chiChewa has ny and nya Tswana has ts and tsn
For use within Wikimedia projects we always use the two character codes.
Thanks, GerardM
wiktionary-l@lists.wikimedia.org