ECMS-4304 [SANITIZATION] change resource bundle from type to script and fix a problem related to publication