Skip to content

Commit

Permalink
centralize all translations
Browse files Browse the repository at this point in the history
  • Loading branch information
stitch committed Nov 11, 2024
1 parent fd8160b commit 301a518
Show file tree
Hide file tree
Showing 34 changed files with 2,064 additions and 3,655 deletions.
92 changes: 0 additions & 92 deletions src/components/FieldTranslations.vue

This file was deleted.

4 changes: 0 additions & 4 deletions src/components/account/VisibleMetrics.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,12 @@
</template>

<script>
import field_translations from '../FieldTranslations'
import {mapState} from 'vuex'
import http from "@/httpclient";
import report_mixin from "@/components/reports/report_mixin"

export default {
mixins: [report_mixin],
i18n: {
sharedMessages: field_translations,
},
name: "VisibleMetrics",
props: {
report_type: {
Expand Down
4 changes: 0 additions & 4 deletions src/components/charts/chart_mixin.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<!-- SPDX-License-Identifier: Apache-2.0 -->
<script>
import {debounce} from "debounce";
import field_translations from "@/components/FieldTranslations";
import ChartDataLabels from 'chartjs-plugin-datalabels';

import {
Expand Down Expand Up @@ -52,9 +51,6 @@ let tooltip_configuration = {
}

export default {
i18n: {
sharedMessages: field_translations,
},
mixins: [report_mixin],
props: {
chart_data: {type: Array, required: true},
Expand Down
5 changes: 0 additions & 5 deletions src/components/charts/donut.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,8 @@ Chart.register(DoughnutController, ArcElement, Tooltip);

import donutChart from './../charts/donutChart'
// import DownloadData from './../charts/DownloadData'
import field_translations from '../FieldTranslations'

export default {
i18n: {
sharedMessages: field_translations,
},

components: {donutChart},

props: {
Expand Down
176 changes: 0 additions & 176 deletions src/components/domains/domain/edit.vue

This file was deleted.

42 changes: 3 additions & 39 deletions src/components/domains/domain/editDomain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ button {

<span v-if="editing">
<input autofocus :placeholder="edited_url_value" v-model="edited_url_value">&nbsp;
<a @click="save()"><span class="sr-only">{{ $t("button_labels.save") }}</span>✅</a>&nbsp;
<a @click="cancel()"><span class="sr-only">{{ $t("button_labels.cancel") }}</span>⏪</a>&nbsp;
<a @click="delete_url(list.id, url.id)"><span class="sr-only">{{ $t("button_labels.remove") }}</span>🗑️</a>
<a @click="save()"><span class="sr-only">{{ $t("domain.edit-domain.save") }}</span>✅</a>&nbsp;
<a @click="cancel()"><span class="sr-only">{{ $t("domain.edit-domain.cancel") }}</span>⏪</a>&nbsp;
<a @click="delete_url(list.id, url.id)"><span class="sr-only">{{ $t("domain.edit-domain.remove") }}</span>🗑️</a>
</span>

</div>
Expand Down Expand Up @@ -104,39 +104,3 @@ export default {
}
}
</script>

<i18n>
{
"en": {
"start_editing_url": "Edit {0}.",
"cancel_editing_url": "Cancel editing and store the original value: {0}",
"eligeble_mail": "{0} is eligible for e-mail scans",
"unknown_eligeble_mail": "Not yet known if {0} can be mail scanned.",
"not_eligeble_mail": "{0} is not eligible for e-mail scans. Will be checked again when starting a scan.",
"eligeble_web": "{0} is eligible for web scans",
"unknown_eligeble_web": "Not yet known if {0} can be web scanned.",
"not_eligeble_web": "{0} is not eligible for web scans. Will be checked again when starting a scan.",
"save_edited_url": "Save changes, the change will be applied to {0}.",
"delete_edited_url": "Delete {0} from this list.",
"button_labels": {
"save": "Save",
"cancel": "Cancel",
"remove": "Remove"
}
},
"nl": {
"eligeble_mail": "E-mail scannen is mogelijk",
"start_editing_url": "Bewerk {0}.",
"unknown_eligeble_mail": "Onbekend of E-mail scannen mogelijk is",
"not_eligeble_mail": "Kan geen E-mail scan uitvoeren (wordt opnieuw gecheckt bij het starten van de scan)",
"eligeble_web": "Web scan is mogelijk",
"unknown_eligeble_web": "Niet bekend of het mogelijk is een web scan uit te voeren",
"not_eligeble_web": "Web scan kan niet worden uitgevoerd. Dit wordt opnieuw gecheckt bij het starten van de scan.",
"button_labels": {
"save": "Opslaan",
"cancel": "Annuleren",
"remove": "Verwijderen"
}
}
}
</i18n>
Loading

0 comments on commit 301a518

Please sign in to comment.