Move lang_detect into root