0

I have a NextJs 12 app which have urls domain.com and domain.com/es we use OneTrus cookie banner in _document.ts like so

        <Head>
          <Script
            id="one-trust"
            strategy="beforeInteractive"
            src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js"
            data-domain-script="xxx"
          />
          <Script id="one-trust-optanonWrapper" type="text/javascript">
            function OptanonWrapper() {}
          </Script>
          <Favicon />
        </Head>

the new requirement is that on /es version the OntTrust cookie banner should be in spanish. We have information that it is setup in one trust manager, bu we are having hard times with setting it up on the frontend, does anyone know how can i enable spanish language in Cookie Banner on /es route? Many thanks.

seven
  • 1,183
  • 14
  • 33

0 Answers0