store selected language to local settings