Closed (fixed)
Project:
TOC API
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Apr 2025 at 21:11 UTC
Updated:
4 Aug 2025 at 23:57 UTC
Jump to comment: Most recent
On multilingual sites, you can't translate the top_label field of the configuration stored within a toc_filter config entity.
ddev drush en -y config_translation toc_api_example<h2>'s in the body fieldExpected result
The "Back to top" (top_label) option should be available to translate.
Actual result
You can't translate the "Back to top" (top_label) option. You're stuck with "Back to top" in all languages.
The config schema declares this setting as a type string. It should be type label so that it can be translated into other languages using config_translation module.
MR
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
m4oliveiComment #4
m4oliveiSimple fix. MR is up. Ready for review!
Comment #5
m4oliveiComment #6
m4oliveiComment #7
m4oliveiComment #8
joseph.olstadComment #10
joseph.olstadadding credit
Comment #11
joseph.olstadThe 2.0.1+ releases currently support >= D10.4 and >=D11.1
Changes introduced in 2.0.1-rc1
Comment #12
joseph.olstadhttps://www.drupal.org/project/toc_api/releases/2.0.1-rc1
Comment #14
joseph.olstadPlease upgrade to 2.0.1-rc1 and let me know how it works out for you. I won't tag 2.0.1 until I get at least some statistics on usage or some kind of feedback.