{"action":"closed","issue":{"url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/897","labels_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/897/labels{/name}","comments_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/897/comments","events_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/897/events","html_url":"https://github.com/froala/wysiwyg-editor/issues/897","id":115233185,"number":897,"title":"Translation of style-names","user":{"login":"felskov","id":1436954,"avatar_url":"https://avatars.githubusercontent.com/u/1436954?v=3","gravatar_id":"","url":"https://api.github.com/users/felskov","html_url":"https://github.com/felskov","followers_url":"https://api.github.com/users/felskov/followers","following_url":"https://api.github.com/users/felskov/following{/other_user}","gists_url":"https://api.github.com/users/felskov/gists{/gist_id}","starred_url":"https://api.github.com/users/felskov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felskov/subscriptions","organizations_url":"https://api.github.com/users/felskov/orgs","repos_url":"https://api.github.com/users/felskov/repos","events_url":"https://api.github.com/users/felskov/events{/privacy}","received_events_url":"https://api.github.com/users/felskov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/froala/wysiwyg-editor/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-05T08:34:10Z","updated_at":"2015-11-05T14:01:11Z","closed_at":"2015-11-05T14:01:11Z","body":"It's possible to define custom styles for some plugins as a plain JavaScript object taking a map of CSS-classes and names - for instance:\r\n\r\n    imageStyles: {\r\n      'fr-rounded': 'Rounded',\r\n      'fr-bordered': 'Bordered'\r\n    }\r\n\r\nBut it appears that there is no way to translate these names - I've tried adding 'Rounded': 'Afrundet' to languages/da.js, but have had no luck with doing so. Looking at the source-code, the styles are being rendered as such:\r\n\r\n    c += '<li><a class=\"fr-command\" data-cmd=\"imageStyle\" data-param1=\"' + cls + '\">' + options[cls] + '</a></li>';\r\n\r\nWouldn't wrapping options[cls] in editor.language.translate do the trick, and make these labels translatable?"}}