diff --git a/src/tools/bcrypt/bcrypt.vue b/src/tools/bcrypt/bcrypt.vue index c28c20bf..cf6045a8 100644 --- a/src/tools/bcrypt/bcrypt.vue +++ b/src/tools/bcrypt/bcrypt.vue @@ -4,11 +4,12 @@ import { useThemeVars } from 'naive-ui'; import { useCopy } from '@/composable/copy'; const themeVars = useThemeVars(); +const { t } = useI18n(); const input = ref(''); const saltCount = ref(10); const hashed = computed(() => hashSync(input.value, saltCount.value)); -const { copy } = useCopy({ source: hashed, text: 'Hashed string copied to the clipboard' }); +const { copy } = useCopy({ source: hashed, text: t('tools.bcrypt.copied') }); const compareString = ref(''); const compareHash = ref(''); @@ -16,41 +17,51 @@ const compareMatch = computed(() => compareSync(compareString.value, compareHash