how to get the translated taxonomy term programmatically? I have tried this

$term = taxonomy_term_load($tid);


and this:

$term = i18n_taxonomy_localize_terms(taxonomy_term_load($tid));


Both return the default language (English) term

I am using D7.
Try 

$term = taxonomy_term_load($tid);
$translated_term = i18n_taxonomy_term_get_translation($term, $langcode);


Also, a good place to look for more information: /sites/all/modules/i18n/i18n_taxonomy/i18n_taxonomy.module