Fix bug when detecting project localizations