44 :class =" [ theme, safariFix ]"
55 v-if =" uiRequired && uiAllowed"
66 >
7- {{ text.main }} ❤️
7+ {{ text.main }}
88 <div class =" button-group" >
99 <button
1010 class =" nq-button-pill light-blue"
2626
2727<script lang="ts">
2828import { Component , Prop , Vue , Watch } from ' vue-property-decorator' ;
29+ import I18nMixin from ' ../i18n/I18nMixin' ;
2930
3031interface Consent {
3132 allowsBrowserData? : boolean ;
@@ -37,17 +38,22 @@ class TrackingConsent extends Vue {
3738 @Prop ({
3839 type: Object ,
3940 default : () => ({
40- main: ' Help Nimiq improve by sharing anonymized usage data. Thank you!' ,
41- yes: ' Yes' ,
42- no: ' No' ,
41+ get main() {
42+ return I18nMixin .$t (
43+ ' TrackingConsent' ,
44+ ' Help Nimiq improve by sharing anonymized usage data. Thank you! ❤️' ,
45+ );
46+ },
47+ get yes() { return I18nMixin .$t (' TrackingConsent' , ' Yes' ); },
48+ get no() { return I18nMixin .$t (' TrackingConsent' , ' No' ); },
4349 browserOnly: ' Browser-info only' ,
4450 }),
45- validator : (value ) => (
46- value && typeof value === ' object' &&
47- value .no && typeof value .no === ' string' && value .no .length &&
48- value .yes && typeof value .yes === ' string' && value .yes .length &&
49- value .main && typeof value .main === ' string' && value .main .length &&
50- value .browserOnly && typeof value .browserOnly === ' string' && value .browserOnly .length
51+ validator : (text ) => (
52+ text && typeof text === ' object' &&
53+ text .no && typeof text .no === ' string' && text .no .length &&
54+ text .yes && typeof text .yes === ' string' && text .yes .length &&
55+ text .main && typeof text .main === ' string' && text .main .length &&
56+ text .browserOnly && typeof text .browserOnly === ' string' && text .browserOnly .length
5157 ),
5258 })
5359 public text: {
0 commit comments