mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-10-30 06:41:46 +09:00
tweak fb01f8bc
This commit is contained in:
parent
fb01f8bcc3
commit
eef033cf8a
@ -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
1
locales/index.d.ts
vendored
@ -3,6 +3,7 @@
|
||||
// Do not edit this file directly.
|
||||
export interface Locale {
|
||||
"_lang_": string;
|
||||
"editNickName": string;
|
||||
"hideAvatarsInNote": string;
|
||||
"displayBanner": string;
|
||||
"requireRefresh": string;
|
||||
|
@ -1,5 +1,6 @@
|
||||
_lang_: "日本語"
|
||||
|
||||
editNickName: "ニックネームを編集"
|
||||
hideAvatarsInNote: "ノートでアイコンを隠す"
|
||||
displayBanner: "バナー画像の表示"
|
||||
requireRefresh: "ページの更新が必要なとき"
|
||||
|
@ -1,5 +1,6 @@
|
||||
---
|
||||
_lang_: "한국어"
|
||||
editNickName: "닉네임 편집"
|
||||
hideAvatarsInNote: "노트에서 프로필 아이콘 숨김"
|
||||
displayBanner: "배너 이미지 표시"
|
||||
requireRefresh: "페이지 새로 고침이 필요할 때"
|
||||
|
@ -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,
|
||||
});
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user