aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Utility/executiveMode.ts
blob: c7b76b020dca0ba811bd331462707466ba02cc32 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import type { Title } from "$lib/List/mediaTitle";

const copyMap: Record<string, string> = {
	Home: "Dashboard",
	ホーム: "ダッシュボード",
	Completed: "Archive",
	完結メディア: "アーカイブ",
	Schedule: "Roadmap",
	スケジュール: "ロードマップ",
	字幕放送スケジュール: "字幕ロードマップ",
	Tools: "Utilities",
	ツール: "ユーティリティ",
	Settings: "Preferences",
	設定: "環境設定",
	Profile: "Associate",
	"Log in with AniList": "Authenticate with AniList",
	AniListでログインする: "AniListで認証する",
	"My Profile": "My Employee Profile",
	バッジウォール: "表彰ウォール",
	プロフィール: "社員プロフィール",
	"My Badge Wall": "My Recognition Wall",
	"Log out": "End Session",
	ログアウト: "セッション終了",
	"Due Episodes": "Action Items",
	追いつくべきエピソード: "対応項目",
	"Upcoming Episodes": "Pipeline",
	今後のエピソード: "パイプライン",
	"Not Yet Released": "Planned Deliverables",
	未公開: "計画中の成果物",
	Anime: "Deliverables",
	アニメ: "成果物",
	"Manga & Light Novels": "Documentation Backlog",
	"漫画&ライトノベル": "ドキュメントバックログ",
	"New Releases": "New Deliverables",
	新着リリース: "新着成果物",
	Refresh: "Quarterly Review",
	Roulette: "Strategic Prioritisation",
	"Refresh data": "Realign KPIs",
	"Force refresh": "Force quarterly review",
};

export const executiveCopy = (enabled: boolean, text: string) =>
	enabled ? copyMap[text] || text : text;

export const executiveTitle = (enabled: boolean, title: Title): Title =>
	enabled
		? {
				...title,
				title: executiveCopy(enabled, title.title),
			}
		: title;