You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added a lightswitch to a matrix block in the control panel. I added a field label and added on and off labels. Now I can add translations to translations/nl/site.php for the label, but the on and off switch labels stay untranslated.
Steps to reproduce
Add a lightswitch in the control panel
Add a field label
Add on and off labels
Add translations to translations/nl/site.php for the label and the on and off switch labels
Expected behavior
The field label and on and off labels will get translated.
Actual behavior
The field label is being translated, but the on and off labels are not.
I checked vendor/craftcms/cms/src/templates/_includes/forms/lightswitch.html and there's no |t('...') on the on and off labels.
This happens in Craft CMS v3 and also in v4.
Craft CMS version
3.7.53.1
PHP version
8.1.0
Operating system and version
Ubuntu 18.04.1
Database type and version
MariaDB 10.5
Image driver and version
?
Installed plugins and versions
craftcms/element-api 2.8.6.1
craftcms/feed-me 4.5.3
craftcms/html-field 1.0.9
craftcms/oauth2-craftid 1.0.0.1
craftcms/plugin-installer 1.5.7
craftcms/redactor 2.10.10
craftcms/server-check 1.2.4
The text was updated successfully, but these errors were encountered:
What happened?
Description
I added a lightswitch to a matrix block in the control panel. I added a field label and added on and off labels. Now I can add translations to translations/nl/site.php for the label, but the on and off switch labels stay untranslated.
Steps to reproduce
Expected behavior
The field label and on and off labels will get translated.
Actual behavior
The field label is being translated, but the on and off labels are not.
I checked
vendor/craftcms/cms/src/templates/_includes/forms/lightswitch.html
and there's no|t('...')
on the on and off labels.This happens in Craft CMS v3 and also in v4.
Craft CMS version
3.7.53.1
PHP version
8.1.0
Operating system and version
Ubuntu 18.04.1
Database type and version
MariaDB 10.5
Image driver and version
?
Installed plugins and versions
The text was updated successfully, but these errors were encountered: