using System.Collections.Generic; namespace GC.ScaleCalculator; /// 内置全量文案兜底:即使模型包里没有语言包也能完整显示。 internal static class DefaultTexts { public static readonly Dictionary Zh = new() { ["app.title"] = "比例尺计算器", ["app.subtitle"] = "把「图上距离 ÷ 实地距离」变成可以拖、可以量的可视化标尺", ["mode.real"] = "求实地距离", ["mode.map"] = "求图上距离", ["mode.scale"] = "求比例尺", ["mode.hint"] = "选择要求什么,蓝色结果卡就是答案", ["input.title"] = "已知量", ["input.map"] = "图上距离", ["input.real"] = "实地距离", ["input.scale"] = "比例尺分母 N", ["input.nPrefix"] = "1 :", ["input.unit"] = "单位", ["input.reset"] = "重置", ["input.presets"] = "常用比例尺", ["input.dragHint"] = "拖动滑块或直接输入数字,读数实时联动", ["result.title"] = "计算结果", ["result.real"] = "实地距离", ["result.map"] = "图上距离", ["result.scale"] = "比例尺", ["result.formula"] = "计算公式", ["forms.title"] = "比例尺的三种写法", ["forms.digital"] = "数字式", ["forms.verbal"] = "文字式", ["forms.segment"] = "线段式", ["forms.verbalTpl"] = "图上 1 厘米代表实地 {0}", ["forms.segmentDesc"] = "每格 {0},共 {1} 格", ["steps.title"] = "解题步骤", ["steps.show"] = "展开步骤", ["steps.hide"] = "收起步骤", ["steps.1.unify"] = "① 统一单位:把实地距离化成厘米(1 km = 100000 cm,去掉 5 个 0)", ["steps.2.formulaReal"] = "② 实地距离 = 图上距离 × 比例尺分母", ["steps.2.formulaMap"] = "② 图上距离 = 实地距离 ÷ 比例尺分母", ["steps.2.formulaScale"] = "② 比例尺分母 = 实地距离 ÷ 图上距离", ["steps.3.substitute"] = "③ 代入数值:{0}", ["steps.4.result"] = "④ 算出结果:{0}", ["steps.5.convert"] = "⑤ 换算成合适单位(cm → m → km)", ["grade.title"] = "大小判读", ["grade.large"] = "大比例尺", ["grade.medium"] = "中比例尺", ["grade.small"] = "小比例尺", ["grade.largeNote"] = "范围小 · 内容详细 · 如校园平面图", ["grade.mediumNote"] = "范围中等 · 如城市交通图", ["grade.smallNote"] = "范围大 · 内容简略 · 如世界地图", ["grade.rule"] = "分母越大 → 比例尺越小 → 范围越大 → 越简略", ["pit.title"] = "易错点", ["pit.1"] = "① 忘记统一单位:km 要 ×100000 才成 cm", ["pit.2"] = "② 「放大 2 倍」是分母 ÷ 2,不是 × 2", ["pit.3"] = "③ 图上距离与实地距离别代反了", ["field.title"] = "实地尺 · 这段距离画到图上多长", ["field.hint"] = "选一个真实距离,改变比例尺看它在图上的长度", ["field.mapLength"] = "图上 {0}", ["field.tooLong"] = "画不下", ["field.tooShort"] = "几乎看不见", ["quiz.title"] = "练习闯关", ["quiz.promptReal"] = "比例尺 1:{0},图上 {1} 厘米,实地距离是多少?(按提示单位填数字)", ["quiz.promptMap"] = "比例尺 1:{0},实地 {1},图上距离是多少厘米?", ["quiz.promptScale"] = "图上 {0} 厘米代表实地 {1},比例尺分母是多少?", ["quiz.answer"] = "输入答案", ["quiz.check"] = "检查", ["quiz.next"] = "下一题", ["quiz.correct"] = "✓ 答对了!", ["quiz.wrong"] = "✗ 再想想,看看解题步骤", ["quiz.streak"] = "连对 {0} 题", ["quiz.showSteps"] = "查看解题步骤", ["quiz.unit"] = "单位:{0}", ["ruler.title"] = "可视化标尺", ["ruler.mapBar"] = "图上距离(真实厘米)", ["ruler.realBar"] = "实地距离(按同一比例尺压缩)", ["ruler.sameWidth"] = "与上方同宽", ["ruler.equals"] = "等于", ["ruler.segment"] = "线段式比例尺", ["ruler.segmentHint"] = "刻度自动换挡", ["ruler.spectrum"] = "比例尺光谱", ["ruler.scopeUp"] = "◀ 范围越大", ["ruler.detailDown"] = "内容越详细 ▶", ["ruler.hint"] = "蓝色是图上真实长度;绿色是同一段实地按比例尺压缩后的长度", ["ruler.overflowMap"] = "这段图上距离超出图幅,需要更小的比例尺", ["ruler.overflowReal"] = "这段实地距离在该比例尺下画不下,需要更小的比例尺", ["unit.cm"] = "厘米", ["unit.m"] = "米", ["unit.km"] = "千米", ["unit.none"] = "(无单位)", ["spec.campus"] = "校园", ["spec.city"] = "城市", ["spec.china"] = "中国", ["spec.world"] = "世界", ["preset.campus"] = "校园 1:1万", ["preset.campusNote"] = "操场、教学楼都画得清", ["preset.town"] = "乡镇 1:5万", ["preset.townNote"] = "村镇与道路", ["preset.city"] = "城市 1:25万", ["preset.cityNote"] = "城区与主干道", ["preset.province"] = "省区 1:100万", ["preset.provinceNote"] = "地级市与河流", ["preset.china"] = "中国 1:1000万", ["preset.chinaNote"] = "省级轮廓", ["preset.world"] = "世界 1:1亿", ["preset.worldNote"] = "大洲大洋", ["lm.classroom"] = "教室 10 m", ["lm.track"] = "操场一圈 400 m", ["lm.marathon"] = "马拉松 42.195 km", ["lm.beijingShanghai"] = "北京—上海 1080 km", ["lm.equator"] = "赤道 4 万 km", ["common.footer"] = "比例尺 = 图上距离 ÷ 实地距离 · 单位统一是第一步 · 分母越大,比例尺越小" }; public static readonly Dictionary En = new() { ["app.title"] = "Scale Calculator", ["app.subtitle"] = "Turn map-distance ÷ real-distance into a ruler you can drag and measure", ["mode.real"] = "Find real distance", ["mode.map"] = "Find map distance", ["mode.scale"] = "Find scale", ["mode.hint"] = "Pick what to solve; the blue card is the answer", ["input.title"] = "Given", ["input.map"] = "Map distance", ["input.real"] = "Real distance", ["input.scale"] = "Scale denominator N", ["input.nPrefix"] = "1 :", ["input.unit"] = "Unit", ["input.reset"] = "Reset", ["input.presets"] = "Common scales", ["input.dragHint"] = "Drag the slider or type a number — everything updates live", ["result.title"] = "Result", ["result.real"] = "Real distance", ["result.map"] = "Map distance", ["result.scale"] = "Scale", ["result.formula"] = "Formula", ["forms.title"] = "Three ways to write a scale", ["forms.digital"] = "Numeric", ["forms.verbal"] = "Verbal", ["forms.segment"] = "Graphic (bar)", ["forms.verbalTpl"] = "1 cm on the map = {0} on the ground", ["forms.segmentDesc"] = "Each division {0}, {1} divisions", ["steps.title"] = "Worked solution", ["steps.show"] = "Show steps", ["steps.hide"] = "Hide steps", ["steps.1.unify"] = "① Unify units: convert the real distance to cm (1 km = 100000 cm)", ["steps.2.formulaReal"] = "② Real distance = map distance × scale denominator", ["steps.2.formulaMap"] = "② Map distance = real distance ÷ scale denominator", ["steps.2.formulaScale"] = "② Scale denominator = real distance ÷ map distance", ["steps.3.substitute"] = "③ Substitute: {0}", ["steps.4.result"] = "④ Result: {0}", ["steps.5.convert"] = "⑤ Convert to a sensible unit (cm → m → km)", ["grade.title"] = "Large / small scale", ["grade.large"] = "Large scale", ["grade.medium"] = "Medium scale", ["grade.small"] = "Small scale", ["grade.largeNote"] = "Small area · detailed · e.g. campus plan", ["grade.mediumNote"] = "Medium area · e.g. city map", ["grade.smallNote"] = "Large area · simplified · e.g. world map", ["grade.rule"] = "Bigger denominator → smaller scale → larger area → less detail", ["pit.title"] = "Common mistakes", ["pit.1"] = "① Forgetting to unify units: km ×100000 = cm", ["pit.2"] = "② \"Zoom 2×\" means denominator ÷ 2, not × 2", ["pit.3"] = "③ Don't swap map distance and real distance", ["field.title"] = "Real-world ruler · how long on the map", ["field.hint"] = "Pick a real distance and change the scale to see its map length", ["field.mapLength"] = "On map {0}", ["field.tooLong"] = "too long", ["field.tooShort"] = "barely visible", ["quiz.title"] = "Practice", ["quiz.promptReal"] = "Scale 1:{0}, map distance {1} cm — what is the real distance? (enter the number in the shown unit)", ["quiz.promptMap"] = "Scale 1:{0}, real distance {1} — what is the map distance in cm?", ["quiz.promptScale"] = "{0} cm on the map = {1} on the ground — what is the scale denominator?", ["quiz.answer"] = "Your answer", ["quiz.check"] = "Check", ["quiz.next"] = "Next", ["quiz.correct"] = "✓ Correct!", ["quiz.wrong"] = "✗ Try again — read the steps", ["quiz.streak"] = "{0} in a row", ["quiz.showSteps"] = "Show solution", ["quiz.unit"] = "Unit: {0}", ["ruler.title"] = "Visual ruler", ["ruler.mapBar"] = "Map distance (real cm)", ["ruler.realBar"] = "Real distance (compressed by the same scale)", ["ruler.sameWidth"] = "same width as above", ["ruler.equals"] = "equals", ["ruler.segment"] = "Graphic scale", ["ruler.segmentHint"] = "auto-ranging ticks", ["ruler.spectrum"] = "Scale spectrum", ["ruler.scopeUp"] = "◀ larger area", ["ruler.detailDown"] = "more detail ▶", ["ruler.hint"] = "Blue is the real map length; green is the same real distance compressed by the scale", ["ruler.overflowMap"] = "This map distance overflows the sheet — use a smaller scale", ["ruler.overflowReal"] = "This real distance won't fit at this scale — use a smaller scale", ["unit.cm"] = "cm", ["unit.m"] = "m", ["unit.km"] = "km", ["unit.none"] = "(unitless)", ["spec.campus"] = "Campus", ["spec.city"] = "City", ["spec.china"] = "China", ["spec.world"] = "World", ["preset.campus"] = "Campus 1:10k", ["preset.campusNote"] = "Buildings clearly drawn", ["preset.town"] = "Town 1:50k", ["preset.townNote"] = "Villages and roads", ["preset.city"] = "City 1:250k", ["preset.cityNote"] = "Urban area and arterials", ["preset.province"] = "Province 1:1M", ["preset.provinceNote"] = "Cities and rivers", ["preset.china"] = "China 1:10M", ["preset.chinaNote"] = "Province outlines", ["preset.world"] = "World 1:100M", ["preset.worldNote"] = "Continents & oceans", ["lm.classroom"] = "Classroom 10 m", ["lm.track"] = "Running track 400 m", ["lm.marathon"] = "Marathon 42.195 km", ["lm.beijingShanghai"] = "Beijing–Shanghai 1080 km", ["lm.equator"] = "Equator 40,000 km", ["common.footer"] = "Scale = map distance ÷ real distance · unify units first · bigger denominator = smaller scale" }; }