added setSupportedLocales method