#100 secolor picker i18n translate changes

master
Agriya Dev5 2021-05-20 11:41:09 +05:30
parent e71958e705
commit ba5cc7bed9
2 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,5 @@
/* eslint-disable max-len */ /* eslint-disable max-len */
/* globals svgEditor */
import { jGraduate, jGraduateMethod } from './jgraduate/jQuery.jGraduate.js'; import { jGraduate, jGraduateMethod } from './jgraduate/jQuery.jGraduate.js';
import PaintBox from './PaintBox.js'; import PaintBox from './PaintBox.js';
@ -641,7 +642,7 @@ div.jGraduate_Slider img {
</style> </style>
<div id="picker"> <div id="picker">
<img src="./images/logo.svg" alt="icon" id="logo"> <img src="./images/logo.svg" alt="icon" id="logo">
<label for="color" title="Change xxx color" id="label"></label> <label for="color" title="${svgEditor.i18next.t('config.change_xxx_color')}" id="label"></label>
<div id="block"> <div id="block">
</div> </div>
</div> </div>
@ -691,7 +692,7 @@ export class SeColorPicker extends HTMLElement {
this.setAttribute('title', newValue); this.setAttribute('title', newValue);
break; break;
case 'type': case 'type':
this.$label.setAttribute('title', `Pick a ${newValue} Paint and Opacity`); this.$label.setAttribute('title', svgEditor.i18next.t('config.pick_paint_opavity', { newValue: newValue }));
break; break;
default: default:
// eslint-disable-next-line no-console // eslint-disable-next-line no-console

View File

@ -208,6 +208,8 @@ export default {
snapping_stepsize: 'Snapping Step-Size:', snapping_stepsize: 'Snapping Step-Size:',
grid_color: 'Grid color:', grid_color: 'Grid color:',
done: "Done", done: "Done",
change_xxx_color: 'Change xxx color',
pick_paint_opavity: 'Pick a {{newValue}} Paint and Opacity'
}, },
notification: { notification: {
invalidAttrValGiven: 'Invalid value given', invalidAttrValGiven: 'Invalid value given',