consider putting this check first. the `lang_file_is_active` call is the most expensive here and would be good to skip if the locale isn't available anyway.