diff --git a/index.json b/index.json index 25056eb..4948a73 100644 --- a/index.json +++ b/index.json @@ -174,7 +174,7 @@ "dependencies": ["painter"], "style": false, "react": true, - "version": "0.4.0", + "version": "0.4.1", "icon": false, "test": true, "install": false diff --git a/src/mask-editor/index.ts b/src/mask-editor/index.ts index ec0d729..0338e32 100644 --- a/src/mask-editor/index.ts +++ b/src/mask-editor/index.ts @@ -204,13 +204,13 @@ class MaskBrush extends LunaPainter.Brush { const { toolbar, options } = this toolbar.clear() - toolbar.appendText('Size:') + toolbar.appendText(LunaPainter.i18n.t('size') + ':') toolbar.appendNumber('size', options.size, { min: 1, max: 1000, step: 1, }) - toolbar.appendText('Opacity:') + toolbar.appendText(LunaPainter.i18n.t('opacity') + ':') toolbar.appendNumber('layerOpacity', options.layerOpacity, { min: 1, max: 100, @@ -232,7 +232,7 @@ class MaskEraser extends LunaPainter.Eraser { const { toolbar, options } = this toolbar.clear() - toolbar.appendText('Size:') + toolbar.appendText(LunaPainter.i18n.t('size') + ':') toolbar.appendNumber('size', options.size, { min: 1, max: 1000, diff --git a/src/mask-editor/package.json b/src/mask-editor/package.json index 0b3f71c..6f03844 100644 --- a/src/mask-editor/package.json +++ b/src/mask-editor/package.json @@ -1,6 +1,6 @@ { "name": "mask-editor", - "version": "0.4.0", + "version": "0.4.1", "description": "Image mask editing", "luna": { "dependencies": [ diff --git a/src/mask-editor/story.js b/src/mask-editor/story.js index 9fbfef4..0b8a9d5 100644 --- a/src/mask-editor/story.js +++ b/src/mask-editor/story.js @@ -1,4 +1,5 @@ import MaskEditor from 'luna-mask-editor.js' +import Painter from 'luna-painter.js' import story from '../share/story' import $ from 'licia/$' import h from 'licia/h' @@ -49,6 +50,7 @@ const def = story( return maskEditor }, { + i18n: Painter.i18n, readme, source: __STORY__, ReactComponent({ theme }) {