Browse Source

Adding locales for toast-ui editor

pull/976/head
Collin Brown 4 years ago
parent
commit
670d6d9bf1
5 changed files with 19 additions and 2 deletions
  1. 2
      frontend/i18n/en/index.js
  2. 3
      frontend/i18n/en/toastui.js
  3. 4
      frontend/i18n/fr/index.js
  4. 3
      frontend/i18n/fr/toastui.js
  5. 9
      frontend/pages/projects/_id/guideline/index.vue

2
frontend/i18n/en/index.js

@ -1,6 +1,7 @@
import home from './home'
import header from './header'
import generic from './generic'
import toastui from './toastui'
import vuetify from './vuetify'
import annotation from './projects/annotation'
import dataset from './projects/dataset'
@ -16,6 +17,7 @@ export default {
home,
header,
generic,
toastui,
vuetify,
annotation,
dataset,

3
frontend/i18n/en/toastui.js

@ -0,0 +1,3 @@
export default {
localeCode: 'en_US'
}

4
frontend/i18n/fr/index.js

@ -1,5 +1,7 @@
import home from './home'
import toastui from './toastui'
export default {
home
home,
toastui
}

3
frontend/i18n/fr/toastui.js

@ -0,0 +1,3 @@
export default {
localeCode: 'fr_FR'
}

9
frontend/pages/projects/_id/guideline/index.vue

@ -4,6 +4,7 @@
v-model="editorText"
preview-style="vertical"
height="inherit"
:options="editorOptions"
/>
</template>
@ -17,7 +18,13 @@ import '@/assets/style/editor.css'
export default {
layout: 'project',
data() {
return {
editorOptions: {
language: this.$t('toastui.localeCode')
}
}
},
components: {
Editor
},

Loading…
Cancel
Save