aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Utility
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Utility')
-rw-r--r--src/lib/Utility/executiveMode.ts51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/lib/Utility/executiveMode.ts b/src/lib/Utility/executiveMode.ts
new file mode 100644
index 00000000..c7b76b02
--- /dev/null
+++ b/src/lib/Utility/executiveMode.ts
@@ -0,0 +1,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;