feat: internationalization
This commit is contained in:
@ -7,6 +7,9 @@ import * as path from '@tauri-apps/api/path';
|
||||
import { invoke } from '../invoke';
|
||||
import { useGeneralStore, usePrfStore } from '../stores';
|
||||
import { ProfileMeta } from '../types';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const general = useGeneralStore();
|
||||
const prf = usePrfStore();
|
||||
@ -60,8 +63,10 @@ const deleteProfile = async () => {
|
||||
|
||||
const promptDeleteProfile = async () => {
|
||||
confirmDialog.require({
|
||||
message: `Are you sure you want to delete ${props.p?.game}-${props.p?.name}?`,
|
||||
header: 'Delete profile',
|
||||
message: t('profile.reallyDelete', {
|
||||
profile: `${props.p?.game}-${props.p?.name}`,
|
||||
}),
|
||||
header: t('profile.delete'),
|
||||
accept: deleteProfile,
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user