It would be nice to make the cookie policy link field translatable via Configuration Translation, which will allow to show different link for each language.
Any pointers on how to achieve that with a patch maybe?

Update:
I can "solve" it by adding
cookie_policy: 'http://www.something.com'
to cookieconsent.settings.yml and

cookie_policy:
      type: text
      label: 'Your cookie policy'

to cookieconsent.schema.yml, but I'm not sure if this is a good solution.

Comments

SimiS created an issue. See original summary.

SimiS’s picture

Issue summary: View changes
weseze’s picture

Seems like the correct solution here.

Attached is a patch.

dimr’s picture

Status: Active » Reviewed & tested by the community

#3 works fine to me, thanks for the patch!

ckaotik’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new1.24 KB

I've adjusted the patch to use a label field type instead of text.
For all the previous changes here, I've created a separate issue #2868260: Update config schema and unify it with config form.

ckaotik’s picture

StatusFileSize
new401 bytes

Sorry about the previous hijacking.

nitebreed’s picture

Status: Needs review » Reviewed & tested by the community

Thank you!

  • Nitebreed committed 539f388 on 8.x-1.x authored by ckaotik
    Issue #2778147 by ckaotik, weseze, SimiS, dimr, Nitebreed: Translatable...
nitebreed’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.