Language info and score

Translation functionality can be added?, I understand that it is necessary for this type of widgets.
Particulary in:

Show Accessibility Info
Show Accessibility Score
Let visitors know you care about accessibility. Displays your site’s score and a short message.ur use case and provide as many details to support your idea as possible. Thank you! :blush:

2 Likes

Hey there and welcome to the Community, @user1752 :waving_hand:

We agree that it would be awesome to translate this part right from the settings and we’ll try to consider this option in the future.

As for now, you can change the text of the score panel using this code in the Custom CSS field on the Settings tab of your widget’s settings:

/* Change text of the Score Title */

[class*="score-block__Title-sc"] {
    font-size: 0 !important; 
}

[class*="score-block__Title-sc"]::before {
    content: "Your Custom Title";
    font-size: 16px; 
}

/* Change text of the Score Label */
[class*="score-block__Label-sc"] {
    font-size: 0 !important; 
}

[class*="score-block__Label-sc"]::before {
    content: "Your Custom Text";
    font-size: 16px; 
}

/* Change text of the Score Caption */

[class*="score-block__Caption-sc"] {
    font-size: 0 !important; 
}

[class*="score-block__Caption-sc"]::before {
    content: "Your Custom caption";
    font-size: 16px; 
}

Replace Your Custom Title/Label/Caption in the content line with the needed translation :slightly_smiling_face:

2 Likes

Glad to say that the issue is fixed and the texts from the score panel are automatically translated to the chosen language.

So, you don’t need to use the CSS codes from the previous message anymore:


Please check it out and let me know if everything is fine on your end now :slightly_smiling_face:

1 Like