Optimize getProjectResources and remove locales data attribute from project menu