Skip to content

Commit

Permalink
fix(frontend): 非推奨i18nの変更
Browse files Browse the repository at this point in the history
  • Loading branch information
slofp committed Aug 3, 2024
1 parent 14c1437 commit ef5be78
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkDrive.folder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ async function deleteFolder() {
// もし中にファイルが存在する場合再帰的に削除するため
const { canceled } = await os.confirm({
type: 'warning',
text: i18n.t('driveFolderDeleteConfirm', { name: props.folder.name }),
text: i18n.tsx.driveFolderDeleteConfirm({ name: props.folder.name }),
});

if (canceled) return;
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkDrive.vue
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ async function deleteFolder(folderToDelete: Misskey.entities.DriveFolder) {
// もし中にファイルが存在する場合再帰的に削除するため
const { canceled } = await os.confirm({
type: 'warning',
text: i18n.t('driveFolderDeleteConfirm', { name: folderToDelete.name }),
text: i18n.tsx.driveFolderDeleteConfirm({ name: folderToDelete.name }),
});

if (canceled) return;
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkPostFormAttaches.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async function detachAndDeleteMedia(file: Misskey.entities.DriveFile) {

const { canceled } = await os.confirm({
type: 'warning',
text: i18n.t('driveFileDeleteConfirm', { name: file.name }),
text: i18n.tsx.driveFileDeleteConfirm({ name: file.name }),
});

if (canceled) return;
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/DialogRole.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function roleAction(ev) {
action: async () => {
const { canceled } = await os.confirm({
type: 'warning',
text: i18n.t('removeAreYouSure', { x: props.role.name }),
text: i18n.tsx.removeAreYouSure({ x: props.role.name }),
});
if (canceled) return;
Expand Down

0 comments on commit ef5be78

Please sign in to comment.