File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
better-write-languages/src Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 9696 import { useProjectStore } from ' @/store/project'
9797 import { useEnv } from ' @/use/env'
9898 import { useI18n } from ' vue-i18n'
99+ import { useToast } from ' vue-toastification'
99100 import { usePlugin } from ' better-write-plugin-core'
100101 import { useStorage } from ' @/use/storage/storage'
101102 import { useProject } from ' @/use/project'
102103
103104 const ABSOLUTE = useAbsoluteStore ()
104105 const PROJECT = useProjectStore ()
105106
107+ const toast = useToast ()
106108 const env = useEnv ()
107109 const plugin = usePlugin ()
108110 const { t } = useI18n ()
118120 const onEPUBGenerate = async () => {
119121 await storage .normalize ()
120122
123+ toast .warning (t (' toast.epub.disabled' ))
124+
121125 plugin .emit (' plugin-epub-generate' )
122126 }
123127
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ export default {
1515 successRemoved : 'Successfully Removed!' ,
1616 onlyOnline : 'You are without internet access to access this feature!' ,
1717 } ,
18+ epub : {
19+ disabled : 'The .EPUB generator is temporarily disabled :('
20+ } ,
1821 pdf : {
1922 error : 'Could not generate the pdf.' ,
2023 configuration : {
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ export default {
1616 onlyOnline :
1717 'Voce está sem acesso à internet para conseguir acessar este recurso!' ,
1818 } ,
19+ epub : {
20+ disabled : 'O gerador de .EPUB está temporariamente desabilitado :('
21+ } ,
1922 pdf : {
2023 error : 'Não foi possível gerar o pdf.' ,
2124 configuration : {
You can’t perform that action at this time.
0 commit comments