refactor: editor-video -> vue component + localization

This commit is contained in:
NGPixel
2017-05-28 20:30:58 -04:00
parent 2aaebb3ce0
commit 87e780bea7
11 changed files with 133 additions and 89 deletions

View File

@@ -88,7 +88,7 @@
this.$store.dispatch('alert', {
style: 'red',
icon: 'square-cross',
msg: 'Error: Unable to load language syntax.'
msg: self.$t('editor.codeblockloadingerror')
})
}
}).catch(err => {
@@ -110,7 +110,7 @@
this.$store.dispatch('alert', {
style: 'blue',
icon: 'inbox',
msg: 'Your code block has been inserted.'
msg: self.$t('editor.codeblocksuccess')
})
this.cancel()
}