123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- /*
- * wysiwyg web editor
- *
- * suneditor.js
- * Copyright 2017 JiHong Lee.
- * MIT license.
- */
- 'use strict';
- (function (global, factory) {
- if (typeof module === 'object' && typeof module.exports === 'object') {
- module.exports = global.document ?
- factory(global, true) :
- function (w) {
- if (!w.document) {
- throw new Error('SUNEDITOR_LANG a window with a document');
- }
- return factory(w);
- };
- } else {
- factory(global);
- }
- }(typeof window !== 'undefined' ? window : this, function (window, noGlobal) {
- const lang = {
- code: 'en',
- toolbar: {
- default: 'Default',
- save: 'Save',
- font: 'Font',
- formats: 'Formats',
- fontSize: 'Size',
- bold: 'Bold',
- underline: 'Underline',
- italic: 'Italic',
- strike: 'Strike',
- subscript: 'Subscript',
- superscript: 'Superscript',
- removeFormat: 'Remove Format',
- fontColor: 'Font Color',
- hiliteColor: 'Highlight Color',
- indent: 'Indent',
- outdent: 'Outdent',
- align: 'Align',
- alignLeft: 'Align left',
- alignRight: 'Align right',
- alignCenter: 'Align center',
- alignJustify: 'Align justify',
- list: 'List',
- orderList: 'Ordered list',
- unorderList: 'Unordered list',
- horizontalRule: 'Horizontal line',
- hr_solid: 'Solid',
- hr_dotted: 'Dotted',
- hr_dashed: 'Dashed',
- table: 'Table',
- link: 'Link',
- math: 'Math',
- image: 'Image',
- video: 'Video',
- audio: 'Audio',
- fullScreen: 'Full screen',
- showBlocks: 'Show blocks',
- codeView: 'Code view',
- undo: 'Undo',
- redo: 'Redo',
- preview: 'Preview',
- print: 'print',
- tag_p: 'Paragraph',
- tag_div: 'Normal (DIV)',
- tag_h: 'Header',
- tag_blockquote: 'Quote',
- tag_pre: 'Code',
- template: 'Template',
- lineHeight: 'Line height',
- paragraphStyle: 'Paragraph style',
- textStyle: 'Text style',
- imageGallery: 'Image gallery',
- mention: 'Mention'
- },
- dialogBox: {
- linkBox: {
- title: 'Insert Link',
- url: 'URL to link',
- text: 'Text to display',
- newWindowCheck: 'Open in new window',
- downloadLinkCheck: 'Download link',
- bookmark: 'Bookmark'
- },
- mathBox: {
- title: 'Math',
- inputLabel: 'Mathematical Notation',
- fontSizeLabel: 'Font Size',
- previewLabel: 'Preview'
- },
- imageBox: {
- title: 'Insert image',
- file: 'Select from files',
- url: 'Image URL',
- altText: 'Alternative text'
- },
- videoBox: {
- title: 'Insert Video',
- file: 'Select from files',
- url: 'Media embed URL, YouTube/Vimeo'
- },
- audioBox: {
- title: 'Insert Audio',
- file: 'Select from files',
- url: 'Audio URL'
- },
- browser: {
- tags: 'Tags',
- search: 'Search',
- },
- caption: 'Insert description',
- close: 'Close',
- submitButton: 'Submit',
- revertButton: 'Revert',
- proportion: 'Constrain proportions',
- basic: 'Basic',
- left: 'Left',
- right: 'Right',
- center: 'Center',
- width: 'Width',
- height: 'Height',
- size: 'Size',
- ratio: 'Ratio'
- },
- controller: {
- edit: 'Edit',
- unlink: 'Unlink',
- remove: 'Remove',
- insertRowAbove: 'Insert row above',
- insertRowBelow: 'Insert row below',
- deleteRow: 'Delete row',
- insertColumnBefore: 'Insert column before',
- insertColumnAfter: 'Insert column after',
- deleteColumn: 'Delete column',
- fixedColumnWidth: 'Fixed column width',
- resize100: 'Resize 100%',
- resize75: 'Resize 75%',
- resize50: 'Resize 50%',
- resize25: 'Resize 25%',
- autoSize: 'Auto size',
- mirrorHorizontal: 'Mirror, Horizontal',
- mirrorVertical: 'Mirror, Vertical',
- rotateLeft: 'Rotate left',
- rotateRight: 'Rotate right',
- maxSize: 'Max size',
- minSize: 'Min size',
- tableHeader: 'Table header',
- mergeCells: 'Merge cells',
- splitCells: 'Split Cells',
- HorizontalSplit: 'Horizontal split',
- VerticalSplit: 'Vertical split'
- },
- menu: {
- spaced: 'Spaced',
- bordered: 'Bordered',
- neon: 'Neon',
- translucent: 'Translucent',
- shadow: 'Shadow',
- code: 'Code'
- }
- };
- if (typeof noGlobal === typeof undefined) {
- if (!window.SUNEDITOR_LANG) {
- Object.defineProperty(window, 'SUNEDITOR_LANG', {
- enumerable: true,
- writable: false,
- configurable: false,
- value: {}
- });
- }
- Object.defineProperty(window.SUNEDITOR_LANG, 'en', {
- enumerable: true,
- writable: true,
- configurable: true,
- value: lang
- });
- }
- return lang;
- }));
|