Skip to content

Commit

Permalink
chore(editor): preferences advanced in configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Sep 30, 2022
1 parent cfae13c commit ed3b18b
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<EditorProjectPreferencesContainerSlot>
<div class="flex flex-col gap-1">
<PreferencesContainerTitle> Idioma </PreferencesContainerTitle>
<PreferencesContainerTitle>{{ t('editor.aside.configuration.language') }}</PreferencesContainerTitle>
<div>
<div
v-for="(language, index) in LanguagesRaw"
Expand Down Expand Up @@ -168,6 +168,30 @@
/>
</div>
</div>
<div class="flex flex-col gap-5">
<PreferencesContainerTitle>
{{ t('editor.aside.configuration.advanced') }}
</PreferencesContainerTitle>
<DescriptionContainer
color="#AA0000"
:description="
t(
'editor.preferences.configuration.editor.options.googleFonts.description'
)
"
>
<div class="wb-preferences">
<p class="text-sm">
{{
t(
'editor.preferences.configuration.editor.options.googleFonts.title'
)
}}
</p>
<InputBoolean v-model="EDITOR.styles.googleFontsInjection" />
</div>
</DescriptionContainer>
</div>
</EditorProjectPreferencesContainerSlot>
</template>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,6 @@
</div>
</div>
<div class="flex flex-col gap-5">
<PreferencesContainerTitle>{{
t('editor.preferences.configuration.editor.title')
}}</PreferencesContainerTitle>
<DescriptionContainer
color="#AA0000"
:description="
t(
'editor.preferences.configuration.editor.options.googleFonts.description'
)
"
>
<div class="wb-preferences">
<p class="text-sm">
{{
t(
'editor.preferences.configuration.editor.options.googleFonts.title'
)
}}
</p>
<InputBoolean v-model="EDITOR.styles.googleFontsInjection" />
</div>
</DescriptionContainer>
<div class="flex flex-col gap-2">
<p class="font-bold text-lg mt-5">
{{ t('editor.preferences.configuration.editor.background.title') }}
Expand Down
4 changes: 3 additions & 1 deletion packages/better-write-languages/src/en-US/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default {
googleFonts: {
title: 'Google API Fonts',
description:
'Enable the use of external fonts in the editor. Depends on internet connection.',
'Enable the use of external fonts in the editor. It depends on the internet connection. Does not affect requests from file generators.',
},
},
background: {
Expand Down Expand Up @@ -285,6 +285,8 @@ export default {
autosave: 'Auto-Save',
blocked: 'Initial Tutorial',
bottomBar: 'Bottom Bar',
language: 'Language',
advanced: 'Advanced',
entity: {
title: 'Editor',
insertEntityInParagraphBreakLine: 'Insert Paragraph at line breaks',
Expand Down
4 changes: 3 additions & 1 deletion packages/better-write-languages/src/pt-BR/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default {
googleFonts: {
title: 'Fontes do Google API',
description:
'Habilitar a utilização de fontes externas no editor. Depende da conexão com a internet.',
'Habilitar a utilização de fontes externas no editor. Depende da conexão com a internet. Não afeta as requisições dos geradores de arquivo.',
},
},
background: {
Expand Down Expand Up @@ -284,6 +284,8 @@ export default {
autosave: 'Salvamento Automático',
blocked: 'Tutorial Inicial',
bottomBar: 'Barra Inferior',
advanced: 'Avançado',
language: 'Idioma',
entity: {
title: 'Editor',
insertEntityInParagraphBreakLine:
Expand Down

0 comments on commit ed3b18b

Please sign in to comment.