Skip to content

Commit 302fa20

Browse files
committed
adjustments - some translations have plotly in the middle
1 parent 78fbc05 commit 302fa20

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/modebar/modebar.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,10 @@ proto.hasButtons = function(buttons) {
285285
return true;
286286
};
287287

288+
function jsVersion(str) {
289+
return str.replace('Plotly', 'Plotly.js') + ' (v' + version + ')';
290+
}
291+
288292
/**
289293
* @return {HTMLDivElement} The logo image wrapped in a group
290294
*/
@@ -294,7 +298,7 @@ proto.getLogo = function() {
294298

295299
a.href = 'https://plotly.com/';
296300
a.target = '_blank';
297-
a.setAttribute('data-title', Lib._(this.graphInfo, 'Produced with Plotly') + '.js ' + version);
301+
a.setAttribute('data-title', jsVersion(Lib._(this.graphInfo, 'Produced with Plotly')));
298302
a.className = 'modebar-btn plotlyjsicon modebar-btn--logo';
299303

300304
a.appendChild(this.createIcon(Icons.newplotlylogo));

0 commit comments

Comments
 (0)