we only support yaml in translation extractor, so filter them
add text selection support for translation extractor