refactor default language setup