-- ============================================================================
-- MSUF - zhTW
--
-- Basic translations for Midnight Simple Unit Frames.
-- Keys are the original English UI strings.
--
-- Perf note:
-- This file is an immediate no-op unless the active locale is zhTW.
-- ============================================================================
local addonName, ns = ...

-- Fast exit for non-zhTW clients.
local loc = (ns and ns.LOCALE) or ((type(GetLocale) == "function" and GetLocale()) or "enUS")
if loc ~= "zhTW" then return end

ns = ns or {}
ns.LOCALE = loc
ns.L = ns.L or (_G.MSUF_L) or {}
local L = ns.L
if not getmetatable(L) then
    setmetatable(L, { __index = function(t, k) return k end })
end
_G.MSUF_L = L

local T = {
    ["Open MSUF Menu"] = "開啟 MSUF 選單",
    ["Edit Mode"] = "編輯模式",
    ["Exit MSUF Edit Mode"] = "退出 MSUF 編輯模式",
    ["Profiles"] = "設定檔",
    ["Snap to grid"] = "對齊格線",
    ["On"] = "開",
    ["Off"] = "關",
    ["ON"] = "開",
    ["OFF"] = "關",
    ["Override"] = "覆蓋",
    ["Overrides"] = "覆蓋",
    ["Enable"] = "啟用",
    ["Cancel"] = "取消",
    ["Top left"] = "左上",
    ["Top right"] = "右上",
    ["Bottom left"] = "左下",
    ["Bottom right"] = "右下",
    ["Center"] = "置中",
    ["Top Left"] = "左上",
    ["Top Right"] = "右上",
    ["Bottom Left"] = "左下",
    ["Bottom Right"] = "右下",
    ["Main Menu"] = "主選單",
    ["Profile: "] = "設定檔: ",
    ["In combat"] = "戰鬥中",
    ["Out of combat"] = "非戰鬥中",
    ["Quick Actions"] = "快捷操作",
    ["Toggle Edit Mode"] = "切換編輯模式",
    ["Profile"] = "設定檔",
    ["Active profile:"] = "目前設定檔:",
    ["Open Profiles"] = "開啟設定檔",
    ["Show"] = "顯示",
    ["Hide"] = "隱藏",
    ["Factory Reset"] = "重設為預設",
    ["Scale & Layout"] = "縮放與佈局",
    ["Presets"] = "預設",
    ["Load preset"] = "載入預設",
    ["Global UI Scale"] = "全域UI縮放",
    ["Scaling OFF"] = "縮放關閉",
    ["Reset"] = "重設",
    ["Dashboard"] = "控制面板",
    ["Unit Frames"] = "單位框架",
    ["Player"] = "玩家",
    ["Target"] = "目標",
    ["Target of Target"] = "目標的目標",
    ["ToT"] = "目標的目標",
    ["Focus"] = "焦點",
    ["Boss Frames"] = "首領框架",
    ["Boss"] = "首領",
    ["Pet"] = "寵物",
    ["Frame Basics"] = "框架基礎",
    ["Enable this frame"] = "啟用此框架",
    ["Show name"] = "顯示名稱",
    ["Show HP text"] = "顯示生命文字",
    ["Show power text"] = "顯示能量文字",
    ["Reverse fill (HP/Power)"] = "反向填充(生命/能量)",
    ["Portrait Off"] = "關閉頭像",
    ["2D Portrait Left"] = "2D頭像左",
    ["2D Portrait Right"] = "2D頭像右",
    ["Boss frame layout"] = "首領框架佈局",
    ["Vertical (top -> bottom)"] = "垂直 (由上至下)",
    ["Vertical (bottom -> top)"] = "垂直 (由下至上)",
    ["Horizontal (left -> right)"] = "水平 (由左至右)",
    ["Horizontal (right -> left)"] = "水平 (由右至左)",
    ["Player Alpha"] = "玩家透明度",
    ["Target Alpha"] = "目標透明度",
    ["Target of Target Alpha"] = "目標的目標透明度",
    ["Focus Alpha"] = "焦點透明度",
    ["Boss Alpha"] = "首領透明度",
    ["Pet Alpha"] = "寵物透明度",
    ["Sync both"] = "同步兩者",
    ["Keep text + portrait visible"] = "保持文字和頭像可見",
    ["Alpha sliders affect"] = "透明度滑桿影響",
    ["Foreground"] = "前景",
    ["Background"] = "背景",
    ["Alpha in combat"] = "戰鬥中透明度",
    ["Alpha out of combat"] = "非戰鬥中透明度",
    ["Free (global anchor)"] = "自由(全域錨點)",
    ["Player frame"] = "玩家框架",
    ["Target frame"] = "目標框架",
    ["Anchor focus to"] = "焦點錨定至",
    ["Castbar"] = "施法條",
    ["Inline Text"] = "內嵌文字",
    ["Show ToT text in Target frame"] = "在目標框架中顯示目標的目標文字",
    ["Enable player castbar"] = "啟用玩家施法條",
    ["Enable target castbar"] = "啟用目標施法條",
    ["Enable focus castbar"] = "啟用焦點施法條",
    ["Enable boss castbars"] = "啟用首領施法條",
    ["Show player cast time"] = "顯示玩家施法時間",
    ["Show target cast time"] = "顯示目標施法時間",
    ["Show focus cast time"] = "顯示焦點施法時間",
    ["Show boss cast time"] = "顯示首領施法時間",
    ["Icon"] = "圖示",
    ["Text"] = "文字",
    ["Show interrupt"] = "顯示打斷",
    ["Indicator"] = "指示器",
    ["Show leader/assist icon"] = "顯示隊長/助理圖示",
    ["Show raid marker icon"] = "顯示團隊標記圖示",
    ["Show level"] = "顯示等級",
    ["Anchor"] = "錨點",
    ["Size"] = "大小",
    ["Resets current indicator"] = "重設目前指示器",
    ["Anchor pet to"] = "寵物錨定至",
    ["Boss spacing"] = "首領間距",
    ["Status icons"] = "狀態圖示",
    ["Combat"] = "戰鬥",
    ["Rested (player only)"] = "休息(僅玩家)",
    ["Incoming Rez"] = "復活",
    ["Rez"] = "復活",
    ["Rested"] = "休息",
    ["Options"] = "選項",
    ["Bars"] = "計量條",
    ["Bar appearance"] = "計量條外觀",
    ["Absorb display"] = "吸收顯示",
    ["Absorb Display"] = "吸收顯示",
    ["Absorb off"] = "關閉吸收",
    ["Absorb bar"] = "吸收條",
    ["Absorb bar + text"] = "吸收條 + 文字",
    ["Absorb text only"] = "僅吸收文字",
    ["Absorb bar anchoring"] = "吸收條錨點",
    ["Absorb bar texture (SharedMedia)"] = "吸收條材質(SharedMedia)",
    ["Bar texture (SharedMedia)"] = "計量條材質(SharedMedia)",
    ["Gradient Options"] = "漸層選項",
    ["Border & Text Options"] = "邊框與文字選項",
    ["Enable HP bar gradient"] = "啟用生命條漸層",
    ["Enable power bar gradient"] = "啟用能量條漸層",
    ["Gradient strength"] = "漸層強度",
    ["Outline thickness"] = "輪廓厚度",
    ["Power Bar Settings"] = "能量條設定",
    ["Power bar height"] = "能量條高度",
    ["Border thickness"] = "邊框厚度",
    ["Textmode HP / Power"] = "文字模式 生命/能量",
    ["Text Separators"] = "文字分隔符",
    ["Health (HP)"] = "生命(HP)",
    ["Power"] = "能量",
    ["Selected: Player"] = "已選取: 玩家",
    ["HP Spacer on/off"] = "生命間距 開/關",
    ["Power Spacer on/off"] = "能量間距 開/關",
    ["Bar Highlight Border"] = "計量條高亮邊框",
    ["Test"] = "測試",
    ["Dispel"] = "驅散",
    ["Aggro"] = "仇恨",
    ["Purge"] = "淨化",
    ["Bar settings"] = "計量條設定",
    ["Current"] = "目前",
    ["Max"] = "最大",
    ["Cur/Max"] = "目前/最大",
    ["Percent"] = "百分比",
    ["Full value only"] = "僅數值",
    ["Full value + %"] = "數值 + %",
    ["% + Full value"] = "% + 數值",
    ["Only %"] = "僅百分比",
    ["Text Spacers"] = "文字間距",
    ["Selected: Shared"] = "已選取: 共用",
    ["Selected: "] = "已選取: ",
    ["Fonts"] = "字型",
    ["Font Settings"] = "字型設定",
    ["Font color & style"] = "字型顏色與樣式",
    ["Global font"] = "全域字型",
    ["Text sizes"] = "文字大小",
    ["Name"] = "名稱",
    ["HP"] = "生命",
    ["Text style"] = "文字樣式",
    ["Name colors"] = "名稱顏色",
    ["Color player names by class"] = "使用職業顏色顯示玩家名稱",
    ["Name display"] = "名稱顯示",
    ["Truncation style"] = "截斷樣式",
    ["Max name length"] = "最大名稱長度",
    ["Reserved space"] = "保留空間",
    ["Reset overrides"] = "重設覆蓋",
    ["Heal prediction"] = "治療預測",
    ["Auras 2.0"] = "光環2.0",
    ["MSUF Edit Mode"] = "MSUF編輯模式",
    ["Enable Auras 2.0"] = "啟用光環2.0",
    ["Enable filters"] = "啟用篩選器",
    ["Edit filters:"] = "編輯篩選器:",
    ["Preview in Edit Mode"] = "在編輯模式中預覽",
    ["Units"] = "單位",
    ["Boss 1-5"] = "首領1-5",
    ["Display"] = "顯示",
    ["Shared"] = "共用",
    ["Show Buffs"] = "顯示增益",
    ["Show Debuffs"] = "顯示減益",
    ["Highlight own buffs"] = "高亮自己的增益",
    ["Highlight own debuffs"] = "高亮自己的減益",
    ["Show cooldown swipe"] = "顯示冷卻掃過",
    ["Show stack count"] = "顯示堆疊數量",
    ["Show cooldown text"] = "顯示冷卻文字",
    ["Show tooltip"] = "顯示滑鼠提示",
    ["Hide permanent buffs"] = "隱藏永久增益",
    ["Only my buffs"] = "僅自己的增益",
    ["Only my debuffs"] = "僅自己的減益",
    ["Max Buffs"] = "最大增益數量",
    ["Max Debuffs"] = "最大減益數量",
    ["Block spacing"] = "區塊間距",
    ["Icons per row"] = "每列圖示數",
    ["Wrap rows"] = "換列",
    ["Stack Anchor"] = "堆疊錨點",
    ["Buff Anchor"] = "增益錨點",
    ["Debuff Anchor"] = "減益錨點",
    ["Growth"] = "增長",
    ["Timer colors"] = "計時顏色",
    ["Advanced"] = "進階",
    ["Include"] = "包含",
    ["Include boss buffs"] = "包含首領增益",
    ["Include boss debuffs"] = "包含首領減益",
    ["Private Auras"] = "私人光環",
    ["Enabled"] = "啟用",
    ["Preview"] = "預覽",
    ["Debuff types"] = "減益類型",
    ["Magic"] = "魔法",
    ["Curse"] = "詛咒",
    ["Poison"] = "中毒",
    ["Disease"] = "疾病",
    ["Enrage"] = "激怒",
    ["2nd row down"] = "第二列(下方)",
    ["2nd row up"] = "第二列(上方)",
    ["Separate rows"] = "分開列",
    ["Single row (Mixed)"] = "單列(混合)",
    ["Grow Right"] = "向右增長",
    ["Grow Left"] = "向左增長",
    ["Vertical Up"] = "垂直向上",
    ["Vertical Down"] = "垂直向下",
    ["Focus Kick"] = "焦點打斷",
    ["Focus Kick Icon"] = "焦點打斷圖示",
    ["Behavior"] = "行為",
    ["Style"] = "風格",
    ["Empowered casts"] = "強化施法",
    ["Castbar fill direction"] = "施法條填充方向",
    ["Right to left (default)"] = "由右到左(預設)",
    ["Left to right"] = "由左到右",
    ["Castbar texture"] = "施法條材質",
    ["Castbar background texture"] = "施法條背景材質",
    ["Name shortening"] = "名稱縮短",
    ["Miscellaneous"] = "雜項",
    ["Updates"] = "更新",
    ["Unit info panel"] = "單位資訊面板",
    ["Indicators"] = "指示器",
    ["Blizzard frames"] = "暴雪框架",
    ["Disable Blizzard unitframes"] = "停用暴雪單位框架",
    ["Status indicators"] = "狀態指示器",
    ["Show Dead"] = "顯示死亡",
    ["Show Ghost"] = "顯示靈魂",
    ["Show AFK"] = "顯示暫離",
    ["Show DND"] = "顯示勿擾",
    ["Range fade"] = "距離漸隱",
    ["Colors"] = "顏色",
    ["Midnight Simple Unit Frames - Colors"] = "Midnight Simple Unit Frames - 顏色",
    ["Global font color"] = "全域字型顏色",
    ["Class bar colors"] = "職業條顏色",
    ["Bar mode"] = "條模式",
    ["Dark Mode (dark black bars)"] = "暗黑模式(深黑色條)",
    ["Class Color Mode (color HP bars)"] = "職業顏色模式(彩色HP條)",
    ["Unitframe Colors"] = "單位框架顏色",
    ["Castbar colors"] = "施法條顏色",
    ["Mouseover highlight"] = "滑鼠懸停高亮",
    ["Gameplay"] = "遊戲性",
    ["Combat Timer"] = "戰鬥計時器",
    ["Combat Enter/Leave"] = "戰鬥進入/離開",
    ["Modules"] = "模組",
    ["Enable MSUF Style"] = "啟用MSUF風格",
    ["Rounded unitframes"] = "圓角單位框架",
    ["Reset profile"] = "重設設定檔",
    ["Delete profile"] = "刪除設定檔",
    ["New"] = "新建",
    ["Existing profiles"] = "現有設定檔",
    ["Profile export / import"] = "設定檔匯出/匯入",
    ["Import"] = "匯入",
    ["Export"] = "匯出",
    ["Legacy Import"] = "舊版匯入",
    ["Editing: %s (X: %d, Y: %d)"] = "編輯: %s (X: %d, Y: %d)",
    ["MODE: SIZE"] = "模式: 大小",
    ["MODE: POSITION"] = "模式: 位置",
    ["Positioning"] = "定位",
    ["Overlay"] = "覆蓋",
    ["Frames"] = "框架",
    ["Aura Preview"] = "光環預覽",
    ["Boss Preview"] = "首領預覽",
    ["Cancel Changes"] = "取消變更",
    ["Reset Frame"] = "重設框架",
    ["MSUF Edit"] = "MSUF 編輯",
    ["Frame"] = "框架",
    ["Right"] = "右邊",
    ["Left"] = "左邊",
    ["Name: "] = "名稱: ",
    ["HP: "] = "生命: ",
    ["Power: "] = "能量: ",
    ["Power Bar"] = "能量條",
    ["Copy"] = "複製",
    ["Copy to"] = "複製到",
    ["Done"] = "完成",
    ["Link"] = "連結",
    ["Navigation"] = "導覽",
    ["R"] = "R",
    ["Layout"] = "佈局",
    ["Spacing"] = "間距",
    ["Font size"] = "字型大小",
    ["Icon size"] = "圖示大小",
    ["X offset"] = "X 偏移",
    ["Y offset"] = "Y 偏移",
    ["Lock position"] = "鎖定位置",
    ["Timer size"] = "計時器大小",
    ["Text size"] = "文字大小",
    ["Duration (s)"] = "持續時間(秒)",
    ["Current: "] = "目前: ",
    ["Midnight Simple Unit Frames"] = "Midnight Simple Unit Frames",
    ["Thank you for using MSUF."] = "感謝您使用MSUF。",
}

for k, v in pairs(T) do
    L[k] = v
end
