custom tld function that reads languages from a file