1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-10-30 06:41:46 +09:00
This commit is contained in:
NoriDev 2023-06-15 01:01:12 +09:00
parent fb01f8bcc3
commit eef033cf8a
6 changed files with 10 additions and 5 deletions

View File

@ -1,5 +1,6 @@
---
_lang_: "English"
editNickName: "닉네임 편집"
hideAvatarsInNote: "Hide avatars in notes"
displayBanner: "Display Banner Image"
requireRefresh: "When the page needs to refresh"

1
locales/index.d.ts vendored
View File

@ -3,6 +3,7 @@
// Do not edit this file directly.
export interface Locale {
"_lang_": string;
"editNickName": string;
"hideAvatarsInNote": string;
"displayBanner": string;
"requireRefresh": string;

View File

@ -1,5 +1,6 @@
_lang_: "日本語"
editNickName: "ニックネームを編集"
hideAvatarsInNote: "ノートでアイコンを隠す"
displayBanner: "バナー画像の表示"
requireRefresh: "ページの更新が必要なとき"

View File

@ -1,5 +1,6 @@
---
_lang_: "한국어"
editNickName: "닉네임 편집"
hideAvatarsInNote: "노트에서 프로필 아이콘 숨김"
displayBanner: "배너 이미지 표시"
requireRefresh: "페이지 새로 고침이 필요할 때"

View File

@ -1,11 +1,12 @@
import {User} from "misskey-js/built/entities";
import {defaultStore} from "@/store";
import * as os from '@/os';
import { User } from 'cherrypick-js/src/entities';
import { defaultStore } from '@/store';
import { i18n } from '@/i18n';
export async function editNickname(user: User) {
if (!defaultStore.state.nicknameEnabled) return;
const { result, canceled } = await os.inputText({
title: 'ニックネームを編集',
title: i18n.ts.editNickName,
placeholder: user.name || user.username,
default: defaultStore.state.nicknameMap[user.id] ?? null,
});

View File

@ -191,11 +191,11 @@ export function getUserMenu(user: misskey.entities.UserDetailed, router: Router
},
}, ...(defaultStore.state.nicknameEnabled ? [{
icon: 'ti ti-edit',
text: 'ニックネームを編集',
text: i18n.ts.editNickName,
action: () => {
editNickname(user);
},
}] : []), null, meId !== user.id ? {
}] : []), meId !== user.id ? {
type: 'link',
icon: 'ti ti-messages',
text: i18n.ts.startMessaging,