123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- (function(){
- var factory = function (exports) {
- var lang = {
- name : "en",
- description : "Open source online Markdown editor.",
- tocTitle : "Table of Contents",
- toolbar : {
- undo : "Undo(Ctrl+Z)",
- redo : "Redo(Ctrl+Y)",
- bold : "Bold",
- del : "Strikethrough",
- italic : "Italic",
- quote : "Block quote",
- ucwords : "Words first letter convert to uppercase",
- uppercase : "Selection text convert to uppercase",
- lowercase : "Selection text convert to lowercase",
- h1 : "Heading 1",
- h2 : "Heading 2",
- h3 : "Heading 3",
- h4 : "Heading 4",
- h5 : "Heading 5",
- h6 : "Heading 6",
- "list-ul" : "Unordered list",
- "list-ol" : "Ordered list",
- hr : "Horizontal rule",
- link : "Link",
- "reference-link" : "Reference link",
- image : "Image",
- code : "Code inline",
- "preformatted-text" : "Preformatted text / Code block (Tab indent)",
- "code-block" : "Code block (Multi-languages)",
- table : "Tables",
- datetime : "Datetime",
- emoji : "Emoji",
- "html-entities" : "HTML Entities",
- pagebreak : "Page break",
- watch : "Unwatch",
- unwatch : "Watch",
- preview : "HTML Preview (Press Shift + ESC exit)",
- fullscreen : "Fullscreen (Press ESC exit)",
- clear : "Clear",
- search : "Search",
- help : "Help",
- info : "About " + exports.title
- },
- buttons : {
- enter : "Enter",
- cancel : "Cancel",
- close : "Close"
- },
- dialog : {
- link : {
- title : "Link",
- url : "Address",
- urlTitle : "Title",
- urlEmpty : "Error: Please fill in the link address."
- },
- referenceLink : {
- title : "Reference link",
- name : "Name",
- url : "Address",
- urlId : "ID",
- urlTitle : "Title",
- nameEmpty: "Error: Reference name can't be empty.",
- idEmpty : "Error: Please fill in reference link id.",
- urlEmpty : "Error: Please fill in reference link url address."
- },
- image : {
- title : "Image",
- url : "Address",
- link : "Link",
- alt : "Title",
- uploadButton : "Upload",
- imageURLEmpty : "Error: picture url address can't be empty.",
- uploadFileEmpty : "Error: upload pictures cannot be empty!",
- formatNotAllowed : "Error: only allows to upload pictures file, upload allowed image file format:"
- },
- preformattedText : {
- title : "Preformatted text / Codes",
- emptyAlert : "Error: Please fill in the Preformatted text or content of the codes."
- },
- codeBlock : {
- title : "Code block",
- selectLabel : "Languages: ",
- selectDefaultText : "select a code language...",
- otherLanguage : "Other languages",
- unselectedLanguageAlert : "Error: Please select the code language.",
- codeEmptyAlert : "Error: Please fill in the code content."
- },
- htmlEntities : {
- title : "HTML Entities"
- },
- help : {
- title : "Help"
- }
- }
- };
-
- exports.defaults.lang = lang;
- };
-
- // CommonJS/Node.js
- if (typeof require === "function" && typeof exports === "object" && typeof module === "object")
- {
- module.exports = factory;
- }
- else if (typeof define === "function") // AMD/CMD/Sea.js
- {
- if (define.amd) { // for Require.js
- define(["editormd"], function(editormd) {
- factory(editormd);
- });
- } else { // for Sea.js
- define(function(require) {
- var editormd = require("../editormd");
- factory(editormd);
- });
- }
- }
- else
- {
- factory(window.editormd);
- }
-
- })();
|