Lang.js 1.0 KB

1
  1. var Lang=function(e){"use strict";var o=KanKan.config(),r={zh:{cad:{floor:"楼层",remove:"删除部件",attribute:"属性",split:"拆分",toolbar:{recall:"撤销",recover:"恢复",clear:"清空",default:"恢复默认",rotate:"旋转",download:"下载",flex:"适应视图",panos:"漫游点",texture:"底图",unit:"测量单位"},classify:{wall:"墙类",door:"门",window:"窗",structure:"构建",tag:"标注"},items:{Wall:"内墙",OutWall:"外墙",SingleDoor:"门",DoubleDoor:"双开门",SlideDoor:"移门",Pass:"垭口",SingleWindow:"窗",BayWindow:"飘窗",FrenchWindow:"落地窗",Beam:"柱子",Flue:"烟道",Corridor:"楼道",Tag:"标注",WallCorner:"点",compass:"指南针"}}}},t=o.lang||"zh";"zh"!=t&&"object"!=typeof o[r]&&(r[t]=o[t]);return e.$t=function(e){if(!e||!r[t])return e;if(-1===e.indexOf("."))return r[t]||e;for(var o=e.split("."),l=null,n=0;n<o.length;n++)if("object"!=typeof(l=null===l?r[t][o[n]]:l[o[n]])&&n===o.length-1)return void 0===l?e:l;return void 0===l?e:l},Object.defineProperty(e,"__esModule",{value:!0}),e}({});