Skip to content

Commit

Permalink
Add Modes to Translatable Strings (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
LoveAndCoding authored and bevacqua committed Sep 8, 2017
1 parent 0fd97d0 commit c1ac5f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/renderers.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ function commands (el, id) {
}

function modes (el, id) {
var texts = {
markdown: 'm\u2193',
wysiwyg: 'wysiwyg'
};
setText(el, texts[id] || id);
setText(el, strings.modes[id] || id);
}

module.exports = {
Expand Down
6 changes: 5 additions & 1 deletion src/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,9 @@ module.exports = {
upload: ', or upload a file',
uploading: 'Uploading your file...',
uploadfailed: 'The upload failed! That\'s all we know.'
}
},
modes: {
wysiwyg: 'wysiwyg',
markdown: 'm\u2193',
},
};

0 comments on commit c1ac5f6

Please sign in to comment.