Tui.image-editor: Trying to change menu name(Locale)

Created on 6 Nov 2019  Β·  3Comments  Β·  Source: nhn/tui.image-editor

Version


Current

Development Environment


Chrome, Win10, Spring(egovernment)

Current Behavior

// Write example code

var locale_kor_KOR = {
'Redo': 'λ‹€μ‹œ μ‹€ν–‰',
'Undo': 'μ·¨μ†Œ',
'Delete': 'μ‚­μ œ',
'Delete-all': 'λͺ¨λ‘ μ‚­μ œ',
'Draw': '그리기',
'Shape': 'λ„ν˜• μ‚½μž…',
'Icon': 'μ•„μ΄μ½˜ μ‚½μž…',
'Text': 'κΈ€μž μž…λ ₯'

Expected Behavior


'Redo': 'λ‹€μ‹œ μ‹€ν–‰',
'Undo': 'μ·¨μ†Œ',
'Delete': 'μ‚­μ œ',
'Delete-all': 'λͺ¨λ‘ μ‚­μ œ',

Wouldn't show up tool tip like Draw, Shape and etc.

Also how do I change menu names in the detail menu?

Your API document didn't clearly show any examples of it nor
any clear explanations, so it would be great to know

Thank you.

Bug

Most helpful comment

@AlexanderYoo
I found these button's tooltip is missing. I'll add the button's tooltip next release. Thx.

All 3 comments

@AlexanderYoo : I believe that currently there is no option to show tooltip for all icons with localized data . For that let me provided customized solution using jquery while rendering an image editor

Solution :

var locale_kor_KOR = '{ "undo":"λ‹€μ‹œ μ‹€ν–‰", "redo":"μ·¨μ†Œ", "delete":"μ‚­μ œ", "delete-all" :"λͺ¨λ‘ μ‚­μ œ","draw": "그리기","shape": "λ„ν˜• μ‚½μž…","icon": "μ•„μ΄μ½˜ μ‚½μž…","text": "κΈ€μž μž…λ ₯"}'; JSON.parse(locale_kor_KOR, function (key, value) { var buttonKey = '#tie-btn-' + key; if($(buttonKey).length > 0) { $(buttonKey).attr('tooltip-content',value); } });

I hope this will help you

_Thank You_

@AlexanderYoo
I found these button's tooltip is missing. I'll add the button's tooltip next release. Thx.

Thank you @junghwan-park

Was this page helpful?
0 / 5 - 0 ratings