fixed language localization on select language and added script to remove duplicates