| 1 |
- const n={en:{"menu.source":"Source Code Mode","menu.align.left":"Align Left","menu.align.center":"Center","menu.align.right":"Align Right","menu.align.justify":"Justify","menu.font.family":"Font Family","menu.font.family.sansserif":"Sans-serif","menu.font.family.serif":"Serif","menu.font.family.cursive":"Cursive","menu.font.family.monospace":"Monospace","menu.font.size":"Font Size","menu.font.size.format.px":"{0}px","menu.font.weight.bold":"Bold","menu.font.italic":"Italic","menu.font.decoration.underline":"Underline","menu.font.decoration.strike":"Strike","menu.font.highlight":"Highlight","menu.font.color":"Text Color","menu.font.color.crimson":"Crimson","menu.font.color.deeppink":"Deep Pink","menu.font.color.darkorange":"Dark Orange","menu.font.color.darkviolet":"Dark Violet","menu.font.color.forestgreen":"Forest Green","menu.font.color.royalblue":"Royal Blue","menu.font.color.saddlebrown":"Saddle Brown","menu.font.color.dimgray":"Dim Gray","menu.font.color.none":"Clear Color","menu.iframe":"Iframe","menu.link":"Link","menu.link.remove":"Unlink","menu.line.spacing":"Line Spacing","menu.line.spacing.format":"{0}x","menu.heading":"Heading","menu.heading.1":"Heading 1","menu.heading.2":"Heading 2","menu.heading.3":"Heading 3","menu.heading.4":"Heading 4","menu.paragraph":"Paragraph","menu.code":"Code","menu.code.block":"Code Block","menu.list.bullet":"Bullet List","menu.list.ordered":"Ordered List","menu.list.task":"Task List","menu.image":"Image","menu.quote":"Blockquote","menu.hr":"Horizontal Rule","menu.table":"Table","menu.table.cell.merge":"Merge Table Cells","menu.table.row.insert.before":"Insert Table Row Before","menu.table.row.insert.after":"Insert Table Row After","menu.table.column.insert.before":"Insert Table Column Before","menu.table.column.insert.after":"Insert Table Column After","menu.table.row.remove":"Delete Table Row","menu.table.column.remove":"Delete Table Column","menu.table.remove":"Delete Table","menu.format.clear":"Clear Format","menu.undo":"Undo","menu.redo":"Redo","menu.fullscreen":"Toggle Fullscreen","menu.group.format":"Format","menu.group.insert":"Insert","error.fullscreen.enter":"Unable to enter fullscreen: {0} ({1})","error.fullscreen.exit":"Unable to exit fullscreen: {0} ({1})"},zh:Object.assign(Object.assign({},{"menu.source":"源码模式","menu.align.left":"左对齐","menu.align.center":"居中","menu.align.right":"右对齐","menu.align.justify":"两端对齐","menu.font.family":"字体","menu.font.family.sansserif":"无衬线体","menu.font.family.serif":"衬线体","menu.font.family.cursive":"手写体","menu.font.family.monospace":"等宽体","menu.font.size":"字号","menu.font.size.format.px":"{0}px","menu.font.weight.bold":"加粗","menu.font.italic":"斜体","menu.font.decoration.underline":"下划线","menu.font.decoration.strike":"删除线","menu.font.highlight":"高亮","menu.font.color":"字体颜色","menu.font.color.crimson":"深红","menu.font.color.deeppink":"深粉","menu.font.color.darkorange":"深橙","menu.font.color.darkviolet":"深紫","menu.font.color.forestgreen":"森绿","menu.font.color.royalblue":"皇蓝","menu.font.color.saddlebrown":"鞍棕","menu.font.color.dimgray":"暗灰","menu.font.color.none":"无","menu.iframe":"嵌入页面","menu.link":"链接","menu.link.remove":"移除链接","menu.line.spacing":"行间距","menu.line.spacing.format":"{0} 倍","menu.heading":"标题","menu.heading.1":"标题 1","menu.heading.2":"标题 2","menu.heading.3":"标题 3","menu.heading.4":"标题 4","menu.paragraph":"段落","menu.code":"代码","menu.code.block":"代码块","menu.list.bullet":"无序列表","menu.list.ordered":"有序列表","menu.list.task":"任务列表","menu.image":"图片","menu.quote":"引用","menu.hr":"分割线","menu.table":"表格","menu.table.cell.merge":"合并单元格","menu.table.row.insert.before":"在上方插入表格行","menu.table.row.insert.after":"在下方插入表格行","menu.table.column.insert.before":"在左侧插入表格列","menu.table.column.insert.after":"在右侧插入表格列","menu.table.row.remove":"删除表格行","menu.table.column.remove":"删除表格列","menu.table.remove":"删除表格","menu.format.clear":"清除格式","menu.undo":"撤销","menu.redo":"重做","menu.fullscreen":"全屏","menu.group.format":"格式","menu.group.insert":"插入","error.fullscreen.enter":"无法进入全屏: {0} ({1})","error.fullscreen.exit":"无法退出全屏: {0} ({1})"}),{"menu.source.pronunciation":"yuanmamoshi,ymms","menu.align.left.pronunciation":"zuoduiqi,zdq","menu.align.center.pronunciation":"juzhong,jz","menu.align.right.pronunciation":"youduiqi,ydq","menu.align.justify.pronunciation":"liangduanduiqi,lddq","menu.font.family.pronunciation":"ziti,zt","menu.font.family.sansserif.pronunciation":"wuchenxianti,wcxt","menu.font.family.serif.pronunciation":"chenxianti,cxt","menu.font.family.cursive.pronunciation":"shouxieti,sxt","menu.font.family.monospace.pronunciation":"dengkuanti,dkt","menu.font.size.pronunciation":"zihao,zh","menu.font.size.format.px.pronunciation":"{0}px,{0}px","menu.font.weight.bold.pronunciation":"jiacu,jc","menu.font.italic.pronunciation":"xieti,xt","menu.font.decoration.underline.pronunciation":"xiahuaxian,xhx","menu.font.decoration.strike.pronunciation":"shanchuxian,scx","menu.font.highlight.pronunciation":"gaoliang,gl","menu.font.color.pronunciation":"zitiyanse,ztys","menu.font.color.crimson.pronunciation":"shenhong,sh","menu.font.color.deeppink.pronunciation":"shenfen,sf","menu.font.color.darkorange.pronunciation":"shencheng,sc","menu.font.color.darkviolet.pronunciation":"shenzi,sz","menu.font.color.forestgreen.pronunciation":"senlv,sl","menu.font.color.royalblue.pronunciation":"huanglan,hl","menu.font.color.saddlebrown.pronunciation":"anzong,az","menu.font.color.dimgray.pronunciation":"anhui,ah","menu.font.color.none.pronunciation":"wu,w","menu.iframe.pronunciation":"qianruyemian,qrym","menu.link.pronunciation":"lianjie,lj","menu.link.remove.pronunciation":"yichulianjie,yclj","menu.line.spacing.pronunciation":"hangjianju,hjj","menu.line.spacing.format.pronunciation":"{0}bei,{0}b","menu.heading.pronunciation":"biaoti,bt","menu.heading.1.pronunciation":"biaoti1,bt1","menu.heading.2.pronunciation":"biaoti2,bt2","menu.heading.3.pronunciation":"biaoti3,bt3","menu.heading.4.pronunciation":"biaoti4,bt4","menu.paragraph.pronunciation":"duanluo,dl","menu.code.pronunciation":"daima,dm","menu.code.block.pronunciation":"daimakuai,dmk","menu.list.bullet.pronunciation":"wuxuliebiao,wxlb","menu.list.ordered.pronunciation":"youxuliebiao,yxlb","menu.list.task.pronunciation":"renwuliebiao,rwlb","menu.image.pronunciation":"tupian,tp","menu.quote.pronunciation":"yinyong,yy","menu.hr.pronunciation":"fengexian,fgx","menu.table.pronunciation":"biaoge,bg","menu.table.cell.merge.pronunciation":"hebingdanyuange,hbdyg","menu.table.row.insert.before.pronunciation":"zaishangfangcharubiaogehang,zsfcrbgh","menu.table.row.insert.after.pronunciation":"zaixiafangcharubiaogehang,zxfcrbgh","menu.table.column.insert.before.pronunciation":"zaizuocecharubiaogelie,zzccrbgl","menu.table.column.insert.after.pronunciation":"zaiyoucecharubiaogelie,zyccrbgl","menu.table.row.remove.pronunciation":"shanchubiaogehang,scbgh","menu.table.column.remove.pronunciation":"shanchubiaogelie,scbgl","menu.table.remove.pronunciation":"shanchubiaoge,scbg","menu.format.clear.pronunciation":"qingchugeshi,qcgs","menu.undo.pronunciation":"chexiao,cx","menu.redo.pronunciation":"zhongzuo,zz","menu.fullscreen.pronunciation":"quanping,qp","menu.group.format.pronunciation":"geshi,gs","menu.group.insert.pronunciation":"charu,cr","error.fullscreen.enter.pronunciation":"wufajinruquanping:{0}({1}),wfjrqp:{0}({1})","error.fullscreen.exit.pronunciation":"wufatuichuquanping:{0}({1}),wftcqp:{0}({1})"})},e=new class{constructor(){this.locale=this.guessLocale(),this.localeData=new Map(Object.entries(n[this.locale]))}guessLocale(){const e=document.documentElement.lang.split("-")[0].toLowerCase();return e in n?e:"en"}setLocale(e){"string"==typeof e?(this.locale=e,this.localeData=new Map(Object.entries(n[this.locale]))):(this.locale="custom",this.localeData=new Map(Object.entries(e)))}getLocale(){return this.locale}format(n,...e){var o;return(null===(o=this.localeData.get(n))||void 0===o?void 0:o.replace(/{(\d+)}/g,((n,o)=>void 0!==e[o]?e[o]:n)))||n}getString(n){return this.localeData.get(n)||n}getPronunciation(n){return this.localeData.get(`${n}.pronunciation`)||this.localeData.get(n)||n}};export{e as L}
|