Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/components/TranslationModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@
{{ isLoading ? t('mail', 'Translating') : t('mail', 'Translate') }}
</NcButton>
</div>
<div class="translate-dialog__ai-note">
<WarningIcon class="translate-dialog__ai-note-icon" />
<span>
{{ t('mail', 'This translation is generated using AI and may contain inaccuracies') }}
</span>

Check failure on line 53 in src/components/TranslationModal.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Expected indentation of 4 tabs but found 1 tab
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation

</div>

<NcRichText
class="translate-dialog__message translate-dialog__message-source"
Expand Down Expand Up @@ -79,6 +85,7 @@
import { getLanguage } from '@nextcloud/l10n'
import { NcButton, NcDialog, NcLoadingIcon, NcRichText, NcSelect } from '@nextcloud/vue'
import { mapState } from 'pinia'
import WarningIcon from 'vue-material-design-icons/AlertOctagonOutline.vue'
import ArrowRight from 'vue-material-design-icons/ArrowRight.vue'
import ContentCopy from 'vue-material-design-icons/ContentCopy.vue'
import { translateText } from '../service/translationService.js'
Expand All @@ -95,6 +102,7 @@
NcSelect,
ArrowRight,
ContentCopy,
WarningIcon,
},

props: {
Expand Down Expand Up @@ -228,4 +236,9 @@
}
}
}
.translate-dialog__ai-note {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we already have a .translate-dialog { block. move this one inside and use &__ai-note

display: flex;
align-items: center;
gap: 5px;
}
</style>
Loading