Skip to content

Commit f0da513

Browse files
committed
fix: translate default user warning message for better localization
AdminForth/1865/need-to-wrap-in-translation-ta
1 parent 3c95c04 commit f0da513

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎adminforth/spa/src/components/Sidebar.vue‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
<div v-if="coreStore?.config?.defaultUserExists && !isLocalhost" class="p-4 mb-4 text-white rounded-lg bg-red-700/80 fill-white text-sm">
5656
<IconExclamationCircleOutline class="inline-block align-text-bottom mr-0,5 w-5 h-5" />
57-
Default user <strong>"adminforth"</strong> detected. Delete it and create your own account.
57+
{{ $t('Default user') }} <strong>"adminforth"</strong> {{ $t('detected. Delete it and create your own account.') }}
5858
</div>
5959

6060
<ul class="af-sidebar-container space-y-2 font-medium" >
@@ -329,10 +329,12 @@ import { Tooltip } from '@/afcl';
329329
import type { AnnouncementBadgeResponse } from '@/types/Common';
330330
import { useAdminforth } from '@/adminforth';
331331
import { IconExclamationCircleOutline} from '@iconify-prerendered/vue-flowbite';
332+
import { useI18n } from 'vue-i18n';
332333
333334
const isLocalhost = window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1' || window.location.hostname === '::1';
334335
335336
const { menu } = useAdminforth();
337+
const { t } = useI18n();
336338
337339
interface Props {
338340
sideBarOpen: boolean;

0 commit comments

Comments
 (0)