Skip to content

Commit c1b90ad

Browse files
committed
refactor(vue): inline t() directly in AdminSupportBanner, remove v-for arrays
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 2e37650 commit c1b90ad

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

src/components/AdminSupportBanner.vue

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,27 @@ SPDX-License-Identifier: AGPL-3.0-or-later
77
<NcNoteCard v-if="isVisible" type="info" data-testid="profile-fields-admin-support-banner">
88
<div class="profile-fields-admin-support-banner">
99
<div class="profile-fields-admin-support-banner__copy">
10-
<p><strong>Help keep Profile Fields sustainable.</strong></p>
11-
<p>Profile Fields is open source under the AGPL license and maintained by the LibreCode team, creators of LibreSign.</p>
12-
<p>If your organization depends on it, please help us sustain its development and maintenance.</p>
10+
<p><strong>{{ t('profile_fields', 'Help keep Profile Fields sustainable.') }}</strong></p>
11+
<p>{{ t('profile_fields', 'Profile Fields is open source under the AGPL license and maintained by the LibreCode team, creators of LibreSign.') }}</p>
12+
<p>{{ t('profile_fields', 'If your organization depends on it, please help us sustain its development and maintenance.') }}</p>
1313

1414
<div class="profile-fields-admin-support-banner__actions">
1515
<NcButton class="profile-fields-admin-support-banner__action" variant="primary" @click="openSponsorPage">
16-
Sponsor LibreSign
16+
{{ t('profile_fields', 'Sponsor LibreSign') }}
1717
</NcButton>
1818

1919
<NcButton class="profile-fields-admin-support-banner__dismiss" variant="tertiary-no-background" @click="dismissBanner">
20-
Maybe later
20+
{{ t('profile_fields', 'Maybe later') }}
2121
</NcButton>
2222
</div>
2323

2424
<div class="profile-fields-admin-support-banner__links">
2525
<a href="https://github.com/LibreCodeCoop/profile_fields" target="_blank" rel="noopener noreferrer nofollow">
26-
Give Profile Fields a ⭐ on GitHub
26+
{{ t('profile_fields', 'Give Profile Fields a ⭐ on GitHub') }}
27+
</a>
28+
<a href="mailto:contact@librecode.coop">
29+
{{ t('profile_fields', 'Contact us for support or custom development') }}
2730
</a>
28-
<a href="mailto:contact@librecode.coop">Contact us for support or custom development</a>
2931
</div>
3032
</div>
3133
</div>
@@ -34,6 +36,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
3436

3537
<script setup lang="ts">
3638
import { onMounted, ref } from 'vue'
39+
import { t } from '@nextcloud/l10n'
3740
import { NcButton, NcNoteCard } from '@nextcloud/vue'
3841
3942
const props = withDefaults(defineProps<{

0 commit comments

Comments
 (0)