-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: de-couple TextEditor translations
- Loading branch information
1 parent
7b4158a
commit 666be14
Showing
4 changed files
with
34 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { defineAsyncComponent } from 'vue' | ||
|
||
// async component to avoid loading the huge toastjs package on page load | ||
export const TextEditor = defineAsyncComponent( | ||
async () => (await import('./TextEditor.vue')).default | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import('@toast-ui/editor/dist/i18n/ar') | ||
import('@toast-ui/editor/dist/i18n/cs-cz') | ||
import('@toast-ui/editor/dist/i18n/de-de') | ||
import('@toast-ui/editor/dist/i18n/en-us') | ||
import('@toast-ui/editor/dist/i18n/es-es') | ||
import('@toast-ui/editor/dist/i18n/fi-fi') | ||
import('@toast-ui/editor/dist/i18n/fr-fr') | ||
import('@toast-ui/editor/dist/i18n/gl-es') | ||
import('@toast-ui/editor/dist/i18n/hr-hr') | ||
import('@toast-ui/editor/dist/i18n/it-it') | ||
import('@toast-ui/editor/dist/i18n/ja-jp') | ||
import('@toast-ui/editor/dist/i18n/ko-kr') | ||
import('@toast-ui/editor/dist/i18n/nb-no') | ||
import('@toast-ui/editor/dist/i18n/nl-nl') | ||
import('@toast-ui/editor/dist/i18n/pl-pl') | ||
import('@toast-ui/editor/dist/i18n/ru-ru') | ||
import('@toast-ui/editor/dist/i18n/sv-se') | ||
import('@toast-ui/editor/dist/i18n/tr-tr') | ||
import('@toast-ui/editor/dist/i18n/uk-ua') | ||
import('@toast-ui/editor/dist/i18n/zh-cn') | ||
import('@toast-ui/editor/dist/i18n/zh-tw') | ||
|
||
export default {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters