#102 components i18n new approach changes

This commit is contained in:
Agriya Dev5
2021-05-22 11:13:21 +05:30
parent da10092989
commit b364daf193
2 changed files with 31 additions and 3 deletions

View File

@@ -215,6 +215,7 @@ class BottomPanel {
`;
this.editor.$svgEditor.append(template.content.cloneNode(true));
$id('palette').addEventListener('change', this.handlePalette.bind(this));
$id('palette').init(i18next);
const { curConfig } = this.editor.configObj;
$id('fill_color').setPaint(new jGraduate.Paint({ alpha: 100, solidColor: curConfig.initFill.color }));
$id('stroke_color').setPaint(new jGraduate.Paint({ alpha: 100, solidColor: curConfig.initStroke.color }));