Skip to content

Commit

Permalink
chore(header): temporary disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Apr 21, 2023
1 parent 6e6ae4c commit 49cd7db
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,15 @@
import { useProjectStore } from '@/store/project'
import { useEnv } from '@/use/env'
import { useI18n } from 'vue-i18n'
import { useToast } from 'vue-toastification'
import { usePlugin } from 'better-write-plugin-core'
import { useStorage } from '@/use/storage/storage'
import { useProject } from '@/use/project'
const ABSOLUTE = useAbsoluteStore()
const PROJECT = useProjectStore()
const toast = useToast()
const env = useEnv()
const plugin = usePlugin()
const { t } = useI18n()
Expand All @@ -118,6 +120,8 @@
const onEPUBGenerate = async () => {
await storage.normalize()
toast.warning(t('toast.epub.disabled'))
plugin.emit('plugin-epub-generate')
}
Expand Down
3 changes: 3 additions & 0 deletions packages/better-write-languages/src/en-US/toast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export default {
successRemoved: 'Successfully Removed!',
onlyOnline: 'You are without internet access to access this feature!',
},
epub: {
disabled: 'The .EPUB generator is temporarily disabled :('
},
pdf: {
error: 'Could not generate the pdf.',
configuration: {
Expand Down
3 changes: 3 additions & 0 deletions packages/better-write-languages/src/pt-BR/toast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export default {
onlyOnline:
'Voce está sem acesso à internet para conseguir acessar este recurso!',
},
epub: {
disabled: 'O gerador de .EPUB está temporariamente desabilitado :('
},
pdf: {
error: 'Não foi possível gerar o pdf.',
configuration: {
Expand Down

0 comments on commit 49cd7db

Please sign in to comment.