don't use full string in searching locale, only use the actual locale code