Status |
---|
colour | Yellow |
---|
title | 릴리즈 RELEASE 2.7.0 이상 |
---|
|
에디터에서 사용할 메세지 리소스를 추가합니다.
동일한 키의 메세지가 있는 경우 덮어쓰기 됩니다
Add a message resource to be used in the editor.
If there is a message with the same key, it is overwritten..
Parameters:
Name | Type | Description |
---|
language | String | 메세지를 추가할 언어입니다. The language in which to add the message. ('ko', 'en', ... ) |
messages | Object | key: 메세지 키Message key, value: 메세지 내용Message details |
Example:
Code Block |
---|
|
var koMessages = {
'myPlugin.message.synap': '사이냅',
'myPlugin.message.editor': '에디터'
};
var enMessages = {
'myPlugin.message.synap': 'Synap',
'myPlugin.message.editor': 'Editor'
};
SynapEditor.addMessages('ko', koMessages);
SynapEditor.addMessages('en', enMessages); |
...