Skip to content

Commit

Permalink
Merge pull request #1 from BlinkUX/mode-translation
Browse files Browse the repository at this point in the history
Add Modes to Translatable Strings
  • Loading branch information
LoveAndCoding authored Jun 28, 2017
2 parents 74cc99d + 933ce09 commit c7b9188
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 c7b9188

Please sign in to comment.