Skip to content

Commit

Permalink
add ai translation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
stitch committed Dec 11, 2024
1 parent 197acb2 commit 5923619
Show file tree
Hide file tree
Showing 8 changed files with 90 additions and 8 deletions.
1 change: 1 addition & 0 deletions components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ declare module 'vue' {
AboutThisList: typeof import('./src/components/domains/list/AboutThisList.vue')['default']
Account: typeof import('./src/components/account/Account.vue')['default']
AddDomainsModal: typeof import('./src/components/domains/list/AddDomainsModal.vue')['default']
AITranslationMessage: typeof import('./src/components/AITranslationMessage.vue')['default']
AppliedTags: typeof import('./src/components/reports/AppliedTags.vue')['default']
Autorefresh: typeof import('./src/components/autorefresh.vue')['default']
BAlert: typeof import('bootstrap-vue-next/components/BAlert')['BAlert']
Expand Down
3 changes: 3 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
</router-view>

</div>
<AITranslationMessage v-if="!['nl', 'en'].includes($i18n.locale)"/>
<GithubMessage v-if="config.app.layout === 'internet_nl'"/>
</div>
</main>
Expand Down Expand Up @@ -59,6 +60,7 @@ import SiteMenu from './components/SiteMenu.vue'
import {mapState} from 'pinia'
import http from "@/httpclient";
import GithubMessage from "@/components/GithubMessage.vue";
import AITranslationMessage from "./components/AITranslationMessage.vue";

export default {

Expand Down Expand Up @@ -116,6 +118,7 @@ export default {
},

components: {
AITranslationMessage,
GithubMessage,
SiteMenu
},
Expand Down
11 changes: 11 additions & 0 deletions src/components/AITranslationMessage.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<template>
<b-alert :model-value="true" variant="info" class="w-100">
🤖 {{ $t("app.core.translated_by_ai")}}
</b-alert>
</template>

<script>
export default {
name: "AITranslationMessage"
}
</script>
51 changes: 51 additions & 0 deletions src/locales/dashboard-frontend.babel
Original file line number Diff line number Diff line change
Expand Up @@ -1526,6 +1526,34 @@
</concept_node>
</children>
</folder_node>
<folder_node>
<name>core</name>
<children>
<concept_node>
<name>translated_by_ai</name>
<description/>
<comment/>
<translations>
<translation>
<language>de-DE</language>
<approved>false</approved>
</translation>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-FR</language>
<approved>false</approved>
</translation>
<translation>
<language>nl-NL</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
</children>
</folder_node>
<folder_node>
<name>footer</name>
<children>
Expand Down Expand Up @@ -1940,6 +1968,29 @@
<folder_node>
<name>locale</name>
<children>
<concept_node>
<name>ai_translated</name>
<description/>
<comment/>
<translations>
<translation>
<language>de-DE</language>
<approved>false</approved>
</translation>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-FR</language>
<approved>false</approved>
</translation>
<translation>
<language>nl-NL</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
<concept_node>
<name>de</name>
<description/>
Expand Down
8 changes: 6 additions & 2 deletions src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
"refresh_now": "Daten jetzt aktualisieren",
"units": "Sekunden"
},
"core": {
"translated_by_ai": "Diese Übersetzung wurde mit Hilfe künstlicher Intelligenz erstellt, was zu kontextbezogenen Fehlern oder falschen Formulierungen führen kann. Bitte setzen Sie sich mit uns in Verbindung, um eine offizielle Übersetzung zu erhalten. Bei Unklarheiten beziehen Sie sich bitte auf den englischen oder niederländischen Originaltext. Wir entschuldigen uns im Voraus für etwaige Übersetzungsfehler."
},
"footer": {
"copyright": "Urheberrecht",
"disclosure": "Schwachstelle melden",
Expand All @@ -111,9 +114,10 @@
"loading": "Laden..."
},
"locale": {
"de": "Deutsch",
"ai_translated": "via AI",
"de": "Deutsch - 🤖KI",
"en": "English",
"fr": "Français",
"fr": "Français - 🤖IA",
"nl": "Nederlands"
},
"login": {
Expand Down
8 changes: 6 additions & 2 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
"refresh_now": "refresh data now",
"units": "seconds"
},
"core": {
"translated_by_ai": "This translation is performed using artificial intelligence, this may result in contextual mistakes or incorrect wording. Please get in touch to support an official translation. Please refer to the original English or Dutch texts in case of confusion. Our apologies in advance for any translation mistakes."
},
"footer": {
"copyright": "Copyright",
"disclosure": "Report vulnerability",
Expand All @@ -111,9 +114,10 @@
"loading": "Loading..."
},
"locale": {
"de": "Deutsch",
"ai_translated": "via AI",
"de": "Deutsch - 🤖KI",
"en": "English",
"fr": "Français",
"fr": "Français - 🤖IA",
"nl": "Nederlands"
},
"login": {
Expand Down
8 changes: 6 additions & 2 deletions src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
"refresh_now": "rafraîchir les données maintenant",
"units": "Secondes"
},
"core": {
"translated_by_ai": "Cette traduction est réalisée à l'aide de l'intelligence artificielle, ce qui peut entraîner des erreurs contextuelles ou des formulations incorrectes. Veuillez nous contacter pour obtenir une traduction officielle. En cas de confusion, veuillez vous référer aux textes originaux en anglais ou en néerlandais. Nous nous excusons par avance pour toute erreur de traduction."
},
"footer": {
"copyright": "Droit d'auteur",
"disclosure": "Signaler une vulnérabilité",
Expand All @@ -111,9 +114,10 @@
"loading": "Chargement..."
},
"locale": {
"de": "Deutsch",
"ai_translated": "via AI",
"de": "Deutsch - 🤖KI",
"en": "English",
"fr": "Français",
"fr": "Français - 🤖IA",
"nl": "Nederlands"
},
"login": {
Expand Down
8 changes: 6 additions & 2 deletions src/locales/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
"refresh_now": "ververs gegevens nu",
"units": "s"
},
"core": {
"translated_by_ai": "Deze vertaling is uitgevoerd met behulp van kunstmatige intelligentie, dit kan leiden tot contextuele fouten of onjuiste bewoordingen. Neem contact op voor een officiële vertaling. Raadpleeg de originele Engelse of Nederlandse tekst in geval van verwarring. Bij voorbaat onze excuses voor eventuele vertaalfouten."
},
"footer": {
"copyright": "Auteursrecht",
"disclosure": "Kwetsbaarheid melden",
Expand All @@ -111,9 +114,10 @@
"loading": "Laden..."
},
"locale": {
"de": "Deutsch",
"ai_translated": "via AI",
"de": "Deutsch - 🤖KI",
"en": "English",
"fr": "Français",
"fr": "Français - 🤖IA",
"nl": "Nederlands"
},
"login": {
Expand Down

0 comments on commit 5923619

Please sign in to comment.