first
This commit is contained in:
18
src/directives/mousewheel.js
Normal file
18
src/directives/mousewheel.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import normalizeWheel from 'normalize-wheel';
|
||||
|
||||
const isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
|
||||
|
||||
const mousewheel = function(element, callback) {
|
||||
if (element && element.addEventListener) {
|
||||
element.addEventListener(isFirefox ? 'DOMMouseScroll' : 'mousewheel', function(event) {
|
||||
const normalized = normalizeWheel(event);
|
||||
callback && callback.apply(this, [event, normalized]);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
export default {
|
||||
bind(el, binding) {
|
||||
mousewheel(el, binding.value);
|
||||
}
|
||||
};
|
24
src/directives/repeat-click.js
Normal file
24
src/directives/repeat-click.js
Normal file
@@ -0,0 +1,24 @@
|
||||
import { once, on } from 'element-ui/src/utils/dom';
|
||||
|
||||
export default {
|
||||
bind(el, binding, vnode) {
|
||||
let interval = null;
|
||||
let startTime;
|
||||
const handler = () => vnode.context[binding.expression].apply();
|
||||
const clear = () => {
|
||||
if (Date.now() - startTime < 100) {
|
||||
handler();
|
||||
}
|
||||
clearInterval(interval);
|
||||
interval = null;
|
||||
};
|
||||
|
||||
on(el, 'mousedown', (e) => {
|
||||
if (e.button !== 0) return;
|
||||
startTime = Date.now();
|
||||
once(document, 'mouseup', clear);
|
||||
clearInterval(interval);
|
||||
interval = setInterval(handler, 100);
|
||||
});
|
||||
}
|
||||
};
|
288
src/index.js
Normal file
288
src/index.js
Normal file
@@ -0,0 +1,288 @@
|
||||
/* Automatically generated by './build/bin/build-entry.js' */
|
||||
|
||||
import Pagination from '../packages/pagination/index.js';
|
||||
import Dialog from '../packages/dialog/index.js';
|
||||
import Autocomplete from '../packages/autocomplete/index.js';
|
||||
import Dropdown from '../packages/dropdown/index.js';
|
||||
import DropdownMenu from '../packages/dropdown-menu/index.js';
|
||||
import DropdownItem from '../packages/dropdown-item/index.js';
|
||||
import Menu from '../packages/menu/index.js';
|
||||
import Submenu from '../packages/submenu/index.js';
|
||||
import MenuItem from '../packages/menu-item/index.js';
|
||||
import MenuItemGroup from '../packages/menu-item-group/index.js';
|
||||
import Input from '../packages/input/index.js';
|
||||
import InputNumber from '../packages/input-number/index.js';
|
||||
import Radio from '../packages/radio/index.js';
|
||||
import RadioGroup from '../packages/radio-group/index.js';
|
||||
import RadioButton from '../packages/radio-button/index.js';
|
||||
import Checkbox from '../packages/checkbox/index.js';
|
||||
import CheckboxButton from '../packages/checkbox-button/index.js';
|
||||
import CheckboxGroup from '../packages/checkbox-group/index.js';
|
||||
import Switch from '../packages/switch/index.js';
|
||||
import Select from '../packages/select/index.js';
|
||||
import Option from '../packages/option/index.js';
|
||||
import OptionGroup from '../packages/option-group/index.js';
|
||||
import Button from '../packages/button/index.js';
|
||||
import ButtonGroup from '../packages/button-group/index.js';
|
||||
import Table from '../packages/table/index.js';
|
||||
import TableColumn from '../packages/table-column/index.js';
|
||||
import DatePicker from '../packages/date-picker/index.js';
|
||||
import TimeSelect from '../packages/time-select/index.js';
|
||||
import TimePicker from '../packages/time-picker/index.js';
|
||||
import Popover from '../packages/popover/index.js';
|
||||
import Tooltip from '../packages/tooltip/index.js';
|
||||
import MessageBox from '../packages/message-box/index.js';
|
||||
import Breadcrumb from '../packages/breadcrumb/index.js';
|
||||
import BreadcrumbItem from '../packages/breadcrumb-item/index.js';
|
||||
import Form from '../packages/form/index.js';
|
||||
import FormItem from '../packages/form-item/index.js';
|
||||
import Tabs from '../packages/tabs/index.js';
|
||||
import TabPane from '../packages/tab-pane/index.js';
|
||||
import Tag from '../packages/tag/index.js';
|
||||
import Tree from '../packages/tree/index.js';
|
||||
import Alert from '../packages/alert/index.js';
|
||||
import Notification from '../packages/notification/index.js';
|
||||
import Slider from '../packages/slider/index.js';
|
||||
import Loading from '../packages/loading/index.js';
|
||||
import Icon from '../packages/icon/index.js';
|
||||
import Row from '../packages/row/index.js';
|
||||
import Col from '../packages/col/index.js';
|
||||
import Upload from '../packages/upload/index.js';
|
||||
import Progress from '../packages/progress/index.js';
|
||||
import Spinner from '../packages/spinner/index.js';
|
||||
import Message from '../packages/message/index.js';
|
||||
import Badge from '../packages/badge/index.js';
|
||||
import Card from '../packages/card/index.js';
|
||||
import Rate from '../packages/rate/index.js';
|
||||
import Steps from '../packages/steps/index.js';
|
||||
import Step from '../packages/step/index.js';
|
||||
import Carousel from '../packages/carousel/index.js';
|
||||
import Scrollbar from '../packages/scrollbar/index.js';
|
||||
import CarouselItem from '../packages/carousel-item/index.js';
|
||||
import Collapse from '../packages/collapse/index.js';
|
||||
import CollapseItem from '../packages/collapse-item/index.js';
|
||||
import Cascader from '../packages/cascader/index.js';
|
||||
import ColorPicker from '../packages/color-picker/index.js';
|
||||
import Transfer from '../packages/transfer/index.js';
|
||||
import Container from '../packages/container/index.js';
|
||||
import Header from '../packages/header/index.js';
|
||||
import Aside from '../packages/aside/index.js';
|
||||
import Main from '../packages/main/index.js';
|
||||
import Footer from '../packages/footer/index.js';
|
||||
import Timeline from '../packages/timeline/index.js';
|
||||
import TimelineItem from '../packages/timeline-item/index.js';
|
||||
import Link from '../packages/link/index.js';
|
||||
import Divider from '../packages/divider/index.js';
|
||||
import Image from '../packages/image/index.js';
|
||||
import Calendar from '../packages/calendar/index.js';
|
||||
import Backtop from '../packages/backtop/index.js';
|
||||
import InfiniteScroll from '../packages/infinite-scroll/index.js';
|
||||
import PageHeader from '../packages/page-header/index.js';
|
||||
import CascaderPanel from '../packages/cascader-panel/index.js';
|
||||
import Avatar from '../packages/avatar/index.js';
|
||||
import Drawer from '../packages/drawer/index.js';
|
||||
import Popconfirm from '../packages/popconfirm/index.js';
|
||||
import locale from 'element-ui/src/locale';
|
||||
import CollapseTransition from 'element-ui/src/transitions/collapse-transition';
|
||||
|
||||
const components = [
|
||||
Pagination,
|
||||
Dialog,
|
||||
Autocomplete,
|
||||
Dropdown,
|
||||
DropdownMenu,
|
||||
DropdownItem,
|
||||
Menu,
|
||||
Submenu,
|
||||
MenuItem,
|
||||
MenuItemGroup,
|
||||
Input,
|
||||
InputNumber,
|
||||
Radio,
|
||||
RadioGroup,
|
||||
RadioButton,
|
||||
Checkbox,
|
||||
CheckboxButton,
|
||||
CheckboxGroup,
|
||||
Switch,
|
||||
Select,
|
||||
Option,
|
||||
OptionGroup,
|
||||
Button,
|
||||
ButtonGroup,
|
||||
Table,
|
||||
TableColumn,
|
||||
DatePicker,
|
||||
TimeSelect,
|
||||
TimePicker,
|
||||
Popover,
|
||||
Tooltip,
|
||||
Breadcrumb,
|
||||
BreadcrumbItem,
|
||||
Form,
|
||||
FormItem,
|
||||
Tabs,
|
||||
TabPane,
|
||||
Tag,
|
||||
Tree,
|
||||
Alert,
|
||||
Slider,
|
||||
Icon,
|
||||
Row,
|
||||
Col,
|
||||
Upload,
|
||||
Progress,
|
||||
Spinner,
|
||||
Badge,
|
||||
Card,
|
||||
Rate,
|
||||
Steps,
|
||||
Step,
|
||||
Carousel,
|
||||
Scrollbar,
|
||||
CarouselItem,
|
||||
Collapse,
|
||||
CollapseItem,
|
||||
Cascader,
|
||||
ColorPicker,
|
||||
Transfer,
|
||||
Container,
|
||||
Header,
|
||||
Aside,
|
||||
Main,
|
||||
Footer,
|
||||
Timeline,
|
||||
TimelineItem,
|
||||
Link,
|
||||
Divider,
|
||||
Image,
|
||||
Calendar,
|
||||
Backtop,
|
||||
PageHeader,
|
||||
CascaderPanel,
|
||||
Avatar,
|
||||
Drawer,
|
||||
Popconfirm,
|
||||
CollapseTransition
|
||||
];
|
||||
|
||||
const install = function(Vue, opts = {}) {
|
||||
locale.use(opts.locale);
|
||||
locale.i18n(opts.i18n);
|
||||
|
||||
components.forEach(component => {
|
||||
Vue.component(component.name, component);
|
||||
});
|
||||
|
||||
Vue.use(InfiniteScroll);
|
||||
Vue.use(Loading.directive);
|
||||
|
||||
Vue.prototype.$ELEMENT = {
|
||||
size: opts.size || '',
|
||||
zIndex: opts.zIndex || 2000
|
||||
};
|
||||
|
||||
Vue.prototype.$loading = Loading.service;
|
||||
Vue.prototype.$msgbox = MessageBox;
|
||||
Vue.prototype.$alert = MessageBox.alert;
|
||||
Vue.prototype.$confirm = MessageBox.confirm;
|
||||
Vue.prototype.$prompt = MessageBox.prompt;
|
||||
Vue.prototype.$notify = Notification;
|
||||
Vue.prototype.$message = Message;
|
||||
|
||||
};
|
||||
|
||||
/* istanbul ignore if */
|
||||
if (typeof window !== 'undefined' && window.Vue) {
|
||||
install(window.Vue);
|
||||
}
|
||||
|
||||
export default {
|
||||
version: '2.15.1',
|
||||
locale: locale.use,
|
||||
i18n: locale.i18n,
|
||||
install,
|
||||
CollapseTransition,
|
||||
Loading,
|
||||
Pagination,
|
||||
Dialog,
|
||||
Autocomplete,
|
||||
Dropdown,
|
||||
DropdownMenu,
|
||||
DropdownItem,
|
||||
Menu,
|
||||
Submenu,
|
||||
MenuItem,
|
||||
MenuItemGroup,
|
||||
Input,
|
||||
InputNumber,
|
||||
Radio,
|
||||
RadioGroup,
|
||||
RadioButton,
|
||||
Checkbox,
|
||||
CheckboxButton,
|
||||
CheckboxGroup,
|
||||
Switch,
|
||||
Select,
|
||||
Option,
|
||||
OptionGroup,
|
||||
Button,
|
||||
ButtonGroup,
|
||||
Table,
|
||||
TableColumn,
|
||||
DatePicker,
|
||||
TimeSelect,
|
||||
TimePicker,
|
||||
Popover,
|
||||
Tooltip,
|
||||
MessageBox,
|
||||
Breadcrumb,
|
||||
BreadcrumbItem,
|
||||
Form,
|
||||
FormItem,
|
||||
Tabs,
|
||||
TabPane,
|
||||
Tag,
|
||||
Tree,
|
||||
Alert,
|
||||
Notification,
|
||||
Slider,
|
||||
Icon,
|
||||
Row,
|
||||
Col,
|
||||
Upload,
|
||||
Progress,
|
||||
Spinner,
|
||||
Message,
|
||||
Badge,
|
||||
Card,
|
||||
Rate,
|
||||
Steps,
|
||||
Step,
|
||||
Carousel,
|
||||
Scrollbar,
|
||||
CarouselItem,
|
||||
Collapse,
|
||||
CollapseItem,
|
||||
Cascader,
|
||||
ColorPicker,
|
||||
Transfer,
|
||||
Container,
|
||||
Header,
|
||||
Aside,
|
||||
Main,
|
||||
Footer,
|
||||
Timeline,
|
||||
TimelineItem,
|
||||
Link,
|
||||
Divider,
|
||||
Image,
|
||||
Calendar,
|
||||
Backtop,
|
||||
InfiniteScroll,
|
||||
PageHeader,
|
||||
CascaderPanel,
|
||||
Avatar,
|
||||
Drawer,
|
||||
Popconfirm
|
||||
};
|
46
src/locale/format.js
Normal file
46
src/locale/format.js
Normal file
@@ -0,0 +1,46 @@
|
||||
import { hasOwn } from 'element-ui/src/utils/util';
|
||||
|
||||
const RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
|
||||
/**
|
||||
* String format template
|
||||
* - Inspired:
|
||||
* https://github.com/Matt-Esch/string-template/index.js
|
||||
*/
|
||||
export default function(Vue) {
|
||||
|
||||
/**
|
||||
* template
|
||||
*
|
||||
* @param {String} string
|
||||
* @param {Array} ...args
|
||||
* @return {String}
|
||||
*/
|
||||
|
||||
function template(string, ...args) {
|
||||
if (args.length === 1 && typeof args[0] === 'object') {
|
||||
args = args[0];
|
||||
}
|
||||
|
||||
if (!args || !args.hasOwnProperty) {
|
||||
args = {};
|
||||
}
|
||||
|
||||
return string.replace(RE_NARGS, (match, prefix, i, index) => {
|
||||
let result;
|
||||
|
||||
if (string[index - 1] === '{' &&
|
||||
string[index + match.length] === '}') {
|
||||
return i;
|
||||
} else {
|
||||
result = hasOwn(args, i) ? args[i] : null;
|
||||
if (result === null || result === undefined) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return template;
|
||||
}
|
48
src/locale/index.js
Normal file
48
src/locale/index.js
Normal file
@@ -0,0 +1,48 @@
|
||||
import defaultLang from 'element-ui/src/locale/lang/zh-CN';
|
||||
import Vue from 'vue';
|
||||
import deepmerge from 'deepmerge';
|
||||
import Format from './format';
|
||||
|
||||
const format = Format(Vue);
|
||||
let lang = defaultLang;
|
||||
let merged = false;
|
||||
let i18nHandler = function() {
|
||||
const vuei18n = Object.getPrototypeOf(this || Vue).$t;
|
||||
if (typeof vuei18n === 'function' && !!Vue.locale) {
|
||||
if (!merged) {
|
||||
merged = true;
|
||||
Vue.locale(
|
||||
Vue.config.lang,
|
||||
deepmerge(lang, Vue.locale(Vue.config.lang) || {}, { clone: true })
|
||||
);
|
||||
}
|
||||
return vuei18n.apply(this, arguments);
|
||||
}
|
||||
};
|
||||
|
||||
export const t = function(path, options) {
|
||||
let value = i18nHandler.apply(this, arguments);
|
||||
if (value !== null && value !== undefined) return value;
|
||||
|
||||
const array = path.split('.');
|
||||
let current = lang;
|
||||
|
||||
for (let i = 0, j = array.length; i < j; i++) {
|
||||
const property = array[i];
|
||||
value = current[property];
|
||||
if (i === j - 1) return format(value, options);
|
||||
if (!value) return '';
|
||||
current = value;
|
||||
}
|
||||
return '';
|
||||
};
|
||||
|
||||
export const use = function(l) {
|
||||
lang = l || lang;
|
||||
};
|
||||
|
||||
export const i18n = function(fn) {
|
||||
i18nHandler = fn || i18nHandler;
|
||||
};
|
||||
|
||||
export default { use, t, i18n };
|
120
src/locale/lang/af-ZA.js
Normal file
120
src/locale/lang/af-ZA.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Bevestig',
|
||||
clear: 'Maak skoon'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Nou',
|
||||
today: 'Vandag',
|
||||
cancel: 'Kanselleer',
|
||||
clear: 'Maak skoon',
|
||||
confirm: 'Bevestig',
|
||||
selectDate: 'Kies datum',
|
||||
selectTime: 'Kies tyd',
|
||||
startDate: 'Begindatum',
|
||||
startTime: 'Begintyd',
|
||||
endDate: 'Einddatum',
|
||||
endTime: 'Eindtyd',
|
||||
prevYear: 'Previous Year', // to be translated
|
||||
nextYear: 'Next Year', // to be translated
|
||||
prevMonth: 'Previous Month', // to be translated
|
||||
nextMonth: 'Next Month', // to be translated
|
||||
year: 'Jaar',
|
||||
month1: 'Jan',
|
||||
month2: 'Feb',
|
||||
month3: 'Mrt',
|
||||
month4: 'Apr',
|
||||
month5: 'Mei',
|
||||
month6: 'Jun',
|
||||
month7: 'Jul',
|
||||
month8: 'Aug',
|
||||
month9: 'Sep',
|
||||
month10: 'Okt',
|
||||
month11: 'Nov',
|
||||
month12: 'Des',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'So',
|
||||
mon: 'Ma',
|
||||
tue: 'Di',
|
||||
wed: 'Wo',
|
||||
thu: 'Do',
|
||||
fri: 'Vr',
|
||||
sat: 'Sa'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Feb',
|
||||
mar: 'Mrt',
|
||||
apr: 'Apr',
|
||||
may: 'Mei',
|
||||
jun: 'Jun',
|
||||
jul: 'Jul',
|
||||
aug: 'Aug',
|
||||
sep: 'Sep',
|
||||
oct: 'Okt',
|
||||
nov: 'Nov',
|
||||
dec: 'Des'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Laai',
|
||||
noMatch: 'Geen toepaslike data',
|
||||
noData: 'Geen data',
|
||||
placeholder: 'Kies'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Geen toepaslike data',
|
||||
loading: 'Laai',
|
||||
placeholder: 'Kies',
|
||||
noData: 'Geen data'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Gaan na',
|
||||
pagesize: '/page',
|
||||
total: 'Totaal {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Boodskap',
|
||||
confirm: 'Bevestig',
|
||||
cancel: 'Kanselleer',
|
||||
error: 'Ongeldige invoer'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'press delete to remove', // to be translated
|
||||
delete: 'Verwyder',
|
||||
preview: 'Voorskou',
|
||||
continue: 'Gaan voort'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Geen Data',
|
||||
confirmFilter: 'Bevestig',
|
||||
resetFilter: 'Herstel',
|
||||
clearFilter: 'Alles',
|
||||
sumText: 'Som'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Geen Data'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Geen toepaslike data',
|
||||
noData: 'Geen data',
|
||||
titles: ['Lys 1', 'Lys 2'],
|
||||
filterPlaceholder: 'Voer sleutelwoord in',
|
||||
noCheckedFormat: '{total} items',
|
||||
hasCheckedFormat: '{checked}/{total} gekies'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
119
src/locale/lang/ar.js
Normal file
119
src/locale/lang/ar.js
Normal file
@@ -0,0 +1,119 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'موافق',
|
||||
clear: 'إزالة'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'الآن',
|
||||
today: 'اليوم',
|
||||
cancel: 'إلغاء',
|
||||
clear: 'إزالة',
|
||||
confirm: 'موافق',
|
||||
selectDate: 'إختر التاريخ',
|
||||
selectTime: 'إختر الوقت',
|
||||
startDate: 'تاريخ البدء',
|
||||
startTime: 'وقت البدء',
|
||||
endDate: 'تاريخ الإنتهاء',
|
||||
endTime: 'وقت الإنتهاء',
|
||||
prevYear: 'السنة السابقة',
|
||||
nextYear: 'السنة التالية',
|
||||
prevMonth: 'الشهر السابق',
|
||||
nextMonth: 'الشهر التالي',
|
||||
year: 'سنة',
|
||||
month1: 'يناير',
|
||||
month2: 'فبراير',
|
||||
month3: 'مارس',
|
||||
month4: 'ابريل',
|
||||
month5: 'مايو',
|
||||
month6: 'يونيو',
|
||||
month7: 'يوليو',
|
||||
month8: 'أغسطس',
|
||||
month9: 'سبتمبر',
|
||||
month10: 'أكتوبر',
|
||||
month11: 'نوفمبر',
|
||||
month12: 'ديسمبر',
|
||||
week: 'أسبوع',
|
||||
weeks: {
|
||||
sun: 'الأحد',
|
||||
mon: 'الأثنين',
|
||||
tue: 'الثلاثاء',
|
||||
wed: 'الأربعاء',
|
||||
thu: 'الخميس',
|
||||
fri: 'الجمعة',
|
||||
sat: 'السبت'
|
||||
},
|
||||
months: {
|
||||
jan: 'يناير',
|
||||
feb: 'فبراير',
|
||||
mar: 'مارس',
|
||||
apr: 'أبريل',
|
||||
may: 'مايو',
|
||||
jun: 'يونيو',
|
||||
jul: 'يوليو',
|
||||
aug: 'أغسطس',
|
||||
sep: 'سبتمبر',
|
||||
oct: 'أكتوبر',
|
||||
nov: 'نوفمبر',
|
||||
dec: 'ديسمبر'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'جار التحميل',
|
||||
noMatch: 'لايوجد بيانات مطابقة',
|
||||
noData: 'لايوجد بيانات',
|
||||
placeholder: 'إختر'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'لايوجد بيانات مطابقة',
|
||||
loading: 'جار التحميل',
|
||||
placeholder: 'إختر',
|
||||
noData: 'لايوجد بيانات'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'أذهب إلى',
|
||||
pagesize: '/صفحة',
|
||||
total: 'الكل {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'العنوان',
|
||||
confirm: 'موافق',
|
||||
cancel: 'إلغاء',
|
||||
error: 'مدخل غير صحيح'
|
||||
},
|
||||
upload: {
|
||||
delete: 'حذف',
|
||||
preview: 'عرض',
|
||||
continue: 'إستمرار'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'لايوجد بيانات',
|
||||
confirmFilter: 'تأكيد',
|
||||
resetFilter: 'حذف',
|
||||
clearFilter: 'الكل',
|
||||
sumText: 'المجموع'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'لايوجد بيانات'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'لايوجد بيانات مطابقة',
|
||||
noData: 'لايوجد بيانات',
|
||||
titles: ['قائمة 1', 'قائمة 2'],
|
||||
filterPlaceholder: 'ادخل كلمة',
|
||||
noCheckedFormat: '{total} عناصر',
|
||||
hasCheckedFormat: '{checked}/{total} مختار'
|
||||
},
|
||||
image: {
|
||||
error: 'فشل'
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'عودة'
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'تأكيد',
|
||||
cancelButtonText: 'إلغاء'
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/bg.js
Normal file
120
src/locale/lang/bg.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Изчисти'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Сега',
|
||||
today: 'Днес',
|
||||
cancel: 'Откажи',
|
||||
clear: 'Изчисти',
|
||||
confirm: 'ОК',
|
||||
selectDate: 'Избери дата',
|
||||
selectTime: 'Избери час',
|
||||
startDate: 'Начална дата',
|
||||
startTime: 'Начален час',
|
||||
endDate: 'Крайна дата',
|
||||
endTime: 'Краен час',
|
||||
prevYear: 'Previous Year', // to be translated
|
||||
nextYear: 'Next Year', // to be translated
|
||||
prevMonth: 'Previous Month', // to be translated
|
||||
nextMonth: 'Next Month', // to be translated
|
||||
year: '',
|
||||
month1: 'Януари',
|
||||
month2: 'Февруари',
|
||||
month3: 'Март',
|
||||
month4: 'Април',
|
||||
month5: 'Май',
|
||||
month6: 'Юни',
|
||||
month7: 'Юли',
|
||||
month8: 'Август',
|
||||
month9: 'Септември',
|
||||
month10: 'Октомври',
|
||||
month11: 'Ноември',
|
||||
month12: 'Декември',
|
||||
// week: 'Седмица',
|
||||
weeks: {
|
||||
sun: 'Нед',
|
||||
mon: 'Пон',
|
||||
tue: 'Вто',
|
||||
wed: 'Сря',
|
||||
thu: 'Чет',
|
||||
fri: 'Пет',
|
||||
sat: 'Съб'
|
||||
},
|
||||
months: {
|
||||
jan: 'Яну',
|
||||
feb: 'Фев',
|
||||
mar: 'Мар',
|
||||
apr: 'Апр',
|
||||
may: 'Май',
|
||||
jun: 'Юни',
|
||||
jul: 'Юли',
|
||||
aug: 'Авг',
|
||||
sep: 'Сеп',
|
||||
oct: 'Окт',
|
||||
nov: 'Ное',
|
||||
dec: 'Дек'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Зареждане',
|
||||
noMatch: 'Няма намерени',
|
||||
noData: 'Няма данни',
|
||||
placeholder: 'Избери'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Няма намерени',
|
||||
loading: 'Зареждане',
|
||||
placeholder: 'Избери',
|
||||
noData: 'Няма данни'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Иди на',
|
||||
pagesize: '/страница',
|
||||
total: 'Общо {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Съобщение',
|
||||
confirm: 'ОК',
|
||||
cancel: 'Откажи',
|
||||
error: 'Невалидни данни'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'press delete to remove', // to be translated
|
||||
delete: 'Изтрий',
|
||||
preview: 'Прегледай',
|
||||
continue: 'Продължи'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Няма данни',
|
||||
confirmFilter: 'Потвърди',
|
||||
resetFilter: 'Изчисти',
|
||||
clearFilter: 'Всички',
|
||||
sumText: 'Sum' // to be translated
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Няма данни'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Няма намерени',
|
||||
noData: 'Няма данни',
|
||||
titles: ['List 1', 'List 2'], // to be translated
|
||||
filterPlaceholder: 'Enter keyword', // to be translated
|
||||
noCheckedFormat: '{total} items', // to be translated
|
||||
hasCheckedFormat: '{checked}/{total} checked' // to be translated
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
119
src/locale/lang/ca.js
Normal file
119
src/locale/lang/ca.js
Normal file
@@ -0,0 +1,119 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Confirmar',
|
||||
clear: 'Netejar'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Ara',
|
||||
today: 'Avui',
|
||||
cancel: 'Cancel·lar',
|
||||
clear: 'Netejar',
|
||||
confirm: 'Confirmar',
|
||||
selectDate: 'Seleccionar data',
|
||||
selectTime: 'Seleccionar hora',
|
||||
startDate: 'Data Inici',
|
||||
startTime: 'Hora Inici',
|
||||
endDate: 'Data Final',
|
||||
endTime: 'Hora Final',
|
||||
prevYear: 'Any anterior',
|
||||
nextYear: 'Pròxim Any',
|
||||
prevMonth: 'Mes anterior',
|
||||
nextMonth: 'Pròxim Mes',
|
||||
year: '',
|
||||
month1: 'Gener',
|
||||
month2: 'Febrer',
|
||||
month3: 'Març',
|
||||
month4: 'Abril',
|
||||
month5: 'Maig',
|
||||
month6: 'Juny',
|
||||
month7: 'Juliol',
|
||||
month8: 'Agost',
|
||||
month9: 'Setembre',
|
||||
month10: 'Octubre',
|
||||
month11: 'Novembre',
|
||||
month12: 'Desembre',
|
||||
// week: 'setmana',
|
||||
weeks: {
|
||||
sun: 'Dg',
|
||||
mon: 'Dl',
|
||||
tue: 'Dt',
|
||||
wed: 'Dc',
|
||||
thu: 'Dj',
|
||||
fri: 'Dv',
|
||||
sat: 'Ds'
|
||||
},
|
||||
months: {
|
||||
jan: 'Gen',
|
||||
feb: 'Febr',
|
||||
mar: 'Març',
|
||||
apr: 'Abr',
|
||||
may: 'Maig',
|
||||
jun: 'Juny',
|
||||
jul: 'Jul',
|
||||
aug: 'Ag',
|
||||
sep: 'Set',
|
||||
oct: 'Oct',
|
||||
nov: 'Nov',
|
||||
dec: 'Des'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Carregant',
|
||||
noMatch: 'No hi ha dades que coincideixin',
|
||||
noData: 'Sense Dades',
|
||||
placeholder: 'Seleccionar'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'No hi ha dades que coincideixin',
|
||||
loading: 'Carregant',
|
||||
placeholder: 'Seleccionar',
|
||||
noData: 'Sense Dades'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Anar a',
|
||||
pagesize: '/pagina',
|
||||
total: 'Total {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
confirm: 'Acceptar',
|
||||
cancel: 'Cancel·lar',
|
||||
error: 'Entrada invàlida'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'premi eliminar per descartar',
|
||||
delete: 'Eliminar',
|
||||
preview: 'Vista Prèvia',
|
||||
continue: 'Continuar'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Sense Dades',
|
||||
confirmFilter: 'Confirmar',
|
||||
resetFilter: 'Netejar',
|
||||
clearFilter: 'Tot',
|
||||
sumText: 'Tot'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Sense Dades'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'No hi ha dades que coincideixin',
|
||||
noData: 'Sense Dades',
|
||||
titles: ['Llista 1', 'Llista 2'],
|
||||
filterPlaceholder: 'Introdueix la paraula clau',
|
||||
noCheckedFormat: '{total} ítems',
|
||||
hasCheckedFormat: '{checked}/{total} seleccionats'
|
||||
},
|
||||
image: {
|
||||
error: 'HA FALLAT'
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Tornar'
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Si',
|
||||
cancelButtonText: 'No'
|
||||
}
|
||||
}
|
||||
};
|
122
src/locale/lang/cs-CZ.js
Normal file
122
src/locale/lang/cs-CZ.js
Normal file
@@ -0,0 +1,122 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Vymazat'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Teď',
|
||||
today: 'Dnes',
|
||||
cancel: 'Zrušit',
|
||||
clear: 'Vymazat',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Vybrat datum',
|
||||
selectTime: 'Vybrat čas',
|
||||
startDate: 'Datum začátku',
|
||||
startTime: 'Čas začátku',
|
||||
endDate: 'Datum konce',
|
||||
endTime: 'Čas konce',
|
||||
prevYear: 'Předchozí rok',
|
||||
nextYear: 'Příští rok',
|
||||
prevMonth: 'Předchozí měsíc',
|
||||
nextMonth: 'Příští měsíc',
|
||||
day: 'Den',
|
||||
week: 'Týden',
|
||||
month: 'Měsíc',
|
||||
year: 'Rok',
|
||||
month1: 'Leden',
|
||||
month2: 'Únor',
|
||||
month3: 'Březen',
|
||||
month4: 'Duben',
|
||||
month5: 'Květen',
|
||||
month6: 'Červen',
|
||||
month7: 'Červenec',
|
||||
month8: 'Srpen',
|
||||
month9: 'Září',
|
||||
month10: 'Říjen',
|
||||
month11: 'Listopad',
|
||||
month12: 'Prosinec',
|
||||
weeks: {
|
||||
sun: 'Ne',
|
||||
mon: 'Po',
|
||||
tue: 'Út',
|
||||
wed: 'St',
|
||||
thu: 'Čt',
|
||||
fri: 'Pá',
|
||||
sat: 'So'
|
||||
},
|
||||
months: {
|
||||
jan: 'Led',
|
||||
feb: 'Úno',
|
||||
mar: 'Bře',
|
||||
apr: 'Dub',
|
||||
may: 'Kvě',
|
||||
jun: 'Čer',
|
||||
jul: 'Čvc',
|
||||
aug: 'Srp',
|
||||
sep: 'Zář',
|
||||
oct: 'Říj',
|
||||
nov: 'Lis',
|
||||
dec: 'Pro'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Načítání',
|
||||
noMatch: 'Žádná shoda',
|
||||
noData: 'Žádná data',
|
||||
placeholder: 'Vybrat'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Žádná shoda',
|
||||
loading: 'Načítání',
|
||||
placeholder: 'Vybrat',
|
||||
noData: 'Žádná data'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Jít na',
|
||||
pagesize: 'na stranu',
|
||||
total: 'Celkem {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Zpráva',
|
||||
confirm: 'OK',
|
||||
cancel: 'Zrušit',
|
||||
error: 'Neplatný vstup'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Stisknout pro smazání',
|
||||
delete: 'Vymazat',
|
||||
preview: 'Náhled',
|
||||
continue: 'Pokračovat'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Žádná data',
|
||||
confirmFilter: 'Potvrdit',
|
||||
resetFilter: 'Resetovat',
|
||||
clearFilter: 'Vše',
|
||||
sumText: 'Celkem'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Žádná data'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Žádná shoda',
|
||||
noData: 'Žádná data',
|
||||
titles: ['Seznam 1', 'Seznam 2'],
|
||||
filterPlaceholder: 'Klíčové slovo',
|
||||
noCheckedFormat: '{total} položek',
|
||||
hasCheckedFormat: '{checked}/{total} vybráno'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
119
src/locale/lang/da.js
Normal file
119
src/locale/lang/da.js
Normal file
@@ -0,0 +1,119 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Ryd'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Nu',
|
||||
today: 'I dag',
|
||||
cancel: 'Annuller',
|
||||
clear: 'Ryd',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Vælg dato',
|
||||
selectTime: 'Vælg tidspunkt',
|
||||
startDate: 'Startdato',
|
||||
startTime: 'Starttidspunkt',
|
||||
endDate: 'Slutdato',
|
||||
endTime: 'Sluttidspunkt',
|
||||
prevYear: 'Forrige år',
|
||||
nextYear: 'Næste år',
|
||||
prevMonth: 'Forrige måned',
|
||||
nextMonth: 'Næste måned',
|
||||
year: '',
|
||||
month1: 'Januar',
|
||||
month2: 'Februar',
|
||||
month3: 'Marts',
|
||||
month4: 'April',
|
||||
month5: 'Maj',
|
||||
month6: 'Juni',
|
||||
month7: 'Juli',
|
||||
month8: 'August',
|
||||
month9: 'September',
|
||||
month10: 'Oktober',
|
||||
month11: 'November',
|
||||
month12: 'December',
|
||||
week: 'uge',
|
||||
weeks: {
|
||||
sun: 'Søn',
|
||||
mon: 'Man',
|
||||
tue: 'Tir',
|
||||
wed: 'Ons',
|
||||
thu: 'Tor',
|
||||
fri: 'Fre',
|
||||
sat: 'Lør'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Feb',
|
||||
mar: 'Mar',
|
||||
apr: 'Apr',
|
||||
may: 'Maj',
|
||||
jun: 'Jun',
|
||||
jul: 'Jul',
|
||||
aug: 'Aug',
|
||||
sep: 'Sep',
|
||||
oct: 'Okt',
|
||||
nov: 'Nov',
|
||||
dec: 'Dec'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Henter',
|
||||
noMatch: 'Ingen matchende data',
|
||||
noData: 'Ingen data',
|
||||
placeholder: 'Vælg'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Ingen matchende data',
|
||||
loading: 'Henter',
|
||||
placeholder: 'Vælg',
|
||||
noData: 'Ingen data'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Gå til',
|
||||
pagesize: '/side',
|
||||
total: 'Total {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
confirm: 'OK',
|
||||
cancel: 'Annuller',
|
||||
error: 'Ugyldig input'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'tryk slet for at fjerne',
|
||||
delete: 'Slet',
|
||||
preview: 'Forhåndsvisning',
|
||||
continue: 'Fortsæt'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Ingen data',
|
||||
confirmFilter: 'Bekræft',
|
||||
resetFilter: 'Nulstil',
|
||||
clearFilter: 'Alle',
|
||||
sumText: 'Sum'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Ingen data'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Ingen matchende data',
|
||||
noData: 'Ingen data',
|
||||
titles: ['Liste 1', 'Liste 2'],
|
||||
filterPlaceholder: 'Indtast søgeord',
|
||||
noCheckedFormat: '{total} emner',
|
||||
hasCheckedFormat: '{checked}/{total} valgt'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
121
src/locale/lang/de.js
Normal file
121
src/locale/lang/de.js
Normal file
@@ -0,0 +1,121 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Leeren'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Jetzt',
|
||||
today: 'Heute',
|
||||
cancel: 'Abbrechen',
|
||||
clear: 'Leeren',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Datum wählen',
|
||||
selectTime: 'Uhrzeit wählen',
|
||||
startDate: 'Startdatum',
|
||||
startTime: 'Startzeit',
|
||||
endDate: 'Enddatum',
|
||||
endTime: 'Endzeit',
|
||||
prevYear: 'Letztes Jahr',
|
||||
nextYear: 'Nächtes Jahr',
|
||||
prevMonth: 'Letzter Monat',
|
||||
nextMonth: 'Nächster Monat',
|
||||
day: 'Tag',
|
||||
week: 'Woche',
|
||||
month: 'Monat',
|
||||
year: '',
|
||||
month1: 'Januar',
|
||||
month2: 'Februar',
|
||||
month3: 'März',
|
||||
month4: 'April',
|
||||
month5: 'Mai',
|
||||
month6: 'Juni',
|
||||
month7: 'Juli',
|
||||
month8: 'August',
|
||||
month9: 'September',
|
||||
month10: 'Oktober',
|
||||
month11: 'November',
|
||||
month12: 'Dezember',
|
||||
weeks: {
|
||||
sun: 'So',
|
||||
mon: 'Mo',
|
||||
tue: 'Di',
|
||||
wed: 'Mi',
|
||||
thu: 'Do',
|
||||
fri: 'Fr',
|
||||
sat: 'Sa'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Feb',
|
||||
mar: 'Mär',
|
||||
apr: 'Apr',
|
||||
may: 'Mai',
|
||||
jun: 'Jun',
|
||||
jul: 'Jul',
|
||||
aug: 'Aug',
|
||||
sep: 'Sep',
|
||||
oct: 'Okt',
|
||||
nov: 'Nov',
|
||||
dec: 'Dez'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Lädt.',
|
||||
noMatch: 'Nichts gefunden.',
|
||||
noData: 'Keine Daten',
|
||||
placeholder: 'Daten wählen'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Nichts gefunden.',
|
||||
loading: 'Lädt.',
|
||||
placeholder: 'Daten wählen',
|
||||
noData: 'Keine Daten'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Gehe zu',
|
||||
pagesize: ' pro Seite',
|
||||
total: 'Gesamt {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
confirm: 'OK',
|
||||
cancel: 'Abbrechen',
|
||||
error: 'Fehler'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Klicke löschen zum entfernen',
|
||||
delete: 'Löschen',
|
||||
preview: 'Vorschau',
|
||||
continue: 'Fortsetzen'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Keine Daten',
|
||||
confirmFilter: 'Anwenden',
|
||||
resetFilter: 'Zurücksetzen',
|
||||
clearFilter: 'Alles ',
|
||||
sumText: 'Summe'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Keine Einträge'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Nichts gefunden.',
|
||||
noData: 'Keine Einträge',
|
||||
titles: ['Liste 1', 'Liste 2'],
|
||||
filterPlaceholder: 'Einträge filtern',
|
||||
noCheckedFormat: '{total} Einträge',
|
||||
hasCheckedFormat: '{checked}/{total} ausgewählt'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/ee.js
Normal file
120
src/locale/lang/ee.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Tühjenda'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Praegu',
|
||||
today: 'Täna',
|
||||
cancel: 'Tühista',
|
||||
clear: 'Tühjenda',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Vali kuupäev',
|
||||
selectTime: 'Vali kellaaeg',
|
||||
startDate: 'Alguskuupäev',
|
||||
startTime: 'Algusaeg',
|
||||
endDate: 'Lõpukuupäev',
|
||||
endTime: 'Lõpuaeg',
|
||||
prevYear: 'Eelmine aasta',
|
||||
nextYear: 'Järgmine aasta',
|
||||
prevMonth: 'Eelmine kuu',
|
||||
nextMonth: 'Järgmine kuu',
|
||||
year: '',
|
||||
month1: 'Jaanuar',
|
||||
month2: 'Veebruar',
|
||||
month3: 'Märts',
|
||||
month4: 'Aprill',
|
||||
month5: 'Mai',
|
||||
month6: 'Juuni',
|
||||
month7: 'Juuli',
|
||||
month8: 'August',
|
||||
month9: 'September',
|
||||
month10: 'Oktoober',
|
||||
month11: 'November',
|
||||
month12: 'Detsember',
|
||||
// week: 'nädal',
|
||||
weeks: {
|
||||
sun: 'P',
|
||||
mon: 'E',
|
||||
tue: 'T',
|
||||
wed: 'K',
|
||||
thu: 'N',
|
||||
fri: 'R',
|
||||
sat: 'L'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jaan',
|
||||
feb: 'Veeb',
|
||||
mar: 'Mär',
|
||||
apr: 'Apr',
|
||||
may: 'Mai',
|
||||
jun: 'Juun',
|
||||
jul: 'Juul',
|
||||
aug: 'Aug',
|
||||
sep: 'Sept',
|
||||
oct: 'Okt',
|
||||
nov: 'Nov',
|
||||
dec: 'Dets'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Laadimine',
|
||||
noMatch: 'Sobivad andmed puuduvad',
|
||||
noData: 'Andmed puuduvad',
|
||||
placeholder: 'Vali'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Sobivad andmed puuduvad',
|
||||
loading: 'Laadimine',
|
||||
placeholder: 'Vali',
|
||||
noData: 'Andmed puuduvad'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Mine lehele',
|
||||
pagesize: '/page',
|
||||
total: 'Kokku {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Teade',
|
||||
confirm: 'OK',
|
||||
cancel: 'Tühista',
|
||||
error: 'Vigane sisend'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Vajuta "Kustuta", et eemaldada',
|
||||
delete: 'Kustuta',
|
||||
preview: 'Eelvaate',
|
||||
continue: 'Jätka'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Andmed puuduvad',
|
||||
confirmFilter: 'Kinnita',
|
||||
resetFilter: 'Taasta',
|
||||
clearFilter: 'Kõik',
|
||||
sumText: 'Summa'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Andmed puuduvad'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Sobivad andmed puuduvad',
|
||||
noData: 'Andmed puuduvad',
|
||||
titles: ['Loend 1', 'Loend 2'],
|
||||
filterPlaceholder: 'Sisesta märksõna',
|
||||
noCheckedFormat: '{total} objekti',
|
||||
hasCheckedFormat: '{checked}/{total} valitud'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/el.js
Normal file
120
src/locale/lang/el.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Εντάξει',
|
||||
clear: 'Καθαρισμός'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Τώρα',
|
||||
today: 'Σήμερα',
|
||||
cancel: 'Ακύρωση',
|
||||
clear: 'Καθαρισμός',
|
||||
confirm: 'Εντάξει',
|
||||
selectDate: 'Επιλέξτε ημέρα',
|
||||
selectTime: 'Επιλέξτε ώρα',
|
||||
startDate: 'Ημερομηνία Έναρξης',
|
||||
startTime: 'Ωρα Έναρξης',
|
||||
endDate: 'Ημερομηνία Λήξης',
|
||||
endTime: 'Ωρα Λήξης',
|
||||
prevYear: 'Προηγούμενο Έτος',
|
||||
nextYear: 'Επόμενο Έτος',
|
||||
prevMonth: 'Προηγούμενος Μήνας',
|
||||
nextMonth: 'Επόμενος Μήνας',
|
||||
year: 'Έτος',
|
||||
month1: 'Ιανουάριος',
|
||||
month2: 'Φεβρουάριος',
|
||||
month3: 'Μάρτιος',
|
||||
month4: 'Απρίλιος',
|
||||
month5: 'Μάιος',
|
||||
month6: 'Ιούνιος',
|
||||
month7: 'Ιούλιος',
|
||||
month8: 'Αύγουστος',
|
||||
month9: 'Σεπτέμβριος',
|
||||
month10: 'Οκτώβριος',
|
||||
month11: 'Νοέμβριος',
|
||||
month12: 'Δεκέμβριος',
|
||||
// week: 'εβδομάδα',
|
||||
weeks: {
|
||||
sun: 'Κυρ',
|
||||
mon: 'Δευ',
|
||||
tue: 'Τρι',
|
||||
wed: 'Τετ',
|
||||
thu: 'Πεμ',
|
||||
fri: 'Παρ',
|
||||
sat: 'Σαβ'
|
||||
},
|
||||
months: {
|
||||
jan: 'Ιαν',
|
||||
feb: 'Φεβ',
|
||||
mar: 'Μαρ',
|
||||
apr: 'Απρ',
|
||||
may: 'Μαϊ',
|
||||
jun: 'Ιουν',
|
||||
jul: 'Ιουλ',
|
||||
aug: 'Αυγ',
|
||||
sep: 'Σεπ',
|
||||
oct: 'Οκτ',
|
||||
nov: 'Νοε',
|
||||
dec: 'Δεκ'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Φόρτωση',
|
||||
noMatch: 'Δεν βρέθηκαν αποτελέσματα',
|
||||
noData: 'Χωρίς δεδομένα',
|
||||
placeholder: 'Επιλογή'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Δεν βρέθηκαν αποτελέσματα',
|
||||
loading: 'Φόρτωση',
|
||||
placeholder: 'Επιλογή',
|
||||
noData: 'Χωρίς δεδομένα'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Μετάβαση σε',
|
||||
pagesize: '/σελίδα',
|
||||
total: 'Σύνολο {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Μήνυμα',
|
||||
confirm: 'Εντάξει',
|
||||
cancel: 'Ακύρωση',
|
||||
error: 'Άκυρη εισαγωγή'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Πάτησε Διαγραφή για αφαίρεση',
|
||||
delete: 'Διαγραφή',
|
||||
preview: 'Προεπισκόπηση',
|
||||
continue: 'Συνέχεια'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Χωρίς Δεδομένα',
|
||||
confirmFilter: 'Επιβεβαίωση',
|
||||
resetFilter: 'Επαναφορά',
|
||||
clearFilter: 'Όλα',
|
||||
sumText: 'Σύνολο'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Χωρίς Δεδομένα'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Δεν βρέθηκαν αποτελέσματα',
|
||||
noData: 'Χωρίς δεδομένα',
|
||||
titles: ['Λίστα 1', 'Λίστα 2'],
|
||||
filterPlaceholder: 'Αναζήτηση',
|
||||
noCheckedFormat: '{total} Αντικείμενα',
|
||||
hasCheckedFormat: '{checked}/{total} επιλεγμένα'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/en.js
Normal file
120
src/locale/lang/en.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Clear'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Now',
|
||||
today: 'Today',
|
||||
cancel: 'Cancel',
|
||||
clear: 'Clear',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Select date',
|
||||
selectTime: 'Select time',
|
||||
startDate: 'Start Date',
|
||||
startTime: 'Start Time',
|
||||
endDate: 'End Date',
|
||||
endTime: 'End Time',
|
||||
prevYear: 'Previous Year',
|
||||
nextYear: 'Next Year',
|
||||
prevMonth: 'Previous Month',
|
||||
nextMonth: 'Next Month',
|
||||
year: '',
|
||||
month1: 'January',
|
||||
month2: 'February',
|
||||
month3: 'March',
|
||||
month4: 'April',
|
||||
month5: 'May',
|
||||
month6: 'June',
|
||||
month7: 'July',
|
||||
month8: 'August',
|
||||
month9: 'September',
|
||||
month10: 'October',
|
||||
month11: 'November',
|
||||
month12: 'December',
|
||||
week: 'week',
|
||||
weeks: {
|
||||
sun: 'Sun',
|
||||
mon: 'Mon',
|
||||
tue: 'Tue',
|
||||
wed: 'Wed',
|
||||
thu: 'Thu',
|
||||
fri: 'Fri',
|
||||
sat: 'Sat'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Feb',
|
||||
mar: 'Mar',
|
||||
apr: 'Apr',
|
||||
may: 'May',
|
||||
jun: 'Jun',
|
||||
jul: 'Jul',
|
||||
aug: 'Aug',
|
||||
sep: 'Sep',
|
||||
oct: 'Oct',
|
||||
nov: 'Nov',
|
||||
dec: 'Dec'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Loading',
|
||||
noMatch: 'No matching data',
|
||||
noData: 'No data',
|
||||
placeholder: 'Select'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'No matching data',
|
||||
loading: 'Loading',
|
||||
placeholder: 'Select',
|
||||
noData: 'No data'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Go to',
|
||||
pagesize: '/page',
|
||||
total: 'Total {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Message',
|
||||
confirm: 'OK',
|
||||
cancel: 'Cancel',
|
||||
error: 'Illegal input'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'press delete to remove',
|
||||
delete: 'Delete',
|
||||
preview: 'Preview',
|
||||
continue: 'Continue'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'No Data',
|
||||
confirmFilter: 'Confirm',
|
||||
resetFilter: 'Reset',
|
||||
clearFilter: 'All',
|
||||
sumText: 'Sum'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'No Data'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'No matching data',
|
||||
noData: 'No data',
|
||||
titles: ['List 1', 'List 2'], // to be translated
|
||||
filterPlaceholder: 'Enter keyword', // to be translated
|
||||
noCheckedFormat: '{total} items', // to be translated
|
||||
hasCheckedFormat: '{checked}/{total} checked' // to be translated
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED'
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes',
|
||||
cancelButtonText: 'No'
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/eo.js
Normal file
120
src/locale/lang/eo.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Bone',
|
||||
clear: 'Malplenigi'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Nun',
|
||||
today: 'Hodiaŭ',
|
||||
cancel: 'Nuligi',
|
||||
clear: 'Malplenigi',
|
||||
confirm: 'Bone',
|
||||
selectDate: 'Elektu daton',
|
||||
selectTime: 'Elektu horon',
|
||||
startDate: 'Komenca Dato',
|
||||
startTime: 'Komenca Horo',
|
||||
endDate: 'Fina Dato',
|
||||
endTime: 'Fina Horo',
|
||||
prevYear: 'Antaŭa Jaro',
|
||||
nextYear: 'Sekva Jaro',
|
||||
prevMonth: 'Antaŭa Monato',
|
||||
nextMonth: 'Sekva Monato',
|
||||
year: 'Jaro',
|
||||
month1: 'Januaro',
|
||||
month2: 'Februaro',
|
||||
month3: 'Marto',
|
||||
month4: 'Aprilo',
|
||||
month5: 'Majo',
|
||||
month6: 'Junio',
|
||||
month7: 'Julio',
|
||||
month8: 'Aŭgusto',
|
||||
month9: 'Septembro',
|
||||
month10: 'Oktobro',
|
||||
month11: 'Novembro',
|
||||
month12: 'Decembro',
|
||||
week: 'Semajno',
|
||||
weeks: {
|
||||
sun: 'Dim',
|
||||
mon: 'Lun',
|
||||
tue: 'Mar',
|
||||
wed: 'Mer',
|
||||
thu: 'Ĵaŭ',
|
||||
fri: 'Ven',
|
||||
sat: 'Sab'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Feb',
|
||||
mar: 'Mar',
|
||||
apr: 'Apr',
|
||||
may: 'Maj',
|
||||
jun: 'Jun',
|
||||
jul: 'Jul',
|
||||
aug: 'Aŭg',
|
||||
sep: 'Sep',
|
||||
oct: 'Okt',
|
||||
nov: 'Nov',
|
||||
dec: 'Dec'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Ŝarĝante',
|
||||
noMatch: 'Neniuj kongruaj datumoj',
|
||||
noData: 'Neniuj datumoj',
|
||||
placeholder: 'Bonvolu elekti'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Neniuj kongruaj datumoj',
|
||||
loading: 'Ŝarĝante',
|
||||
placeholder: 'Bonvolu elekti',
|
||||
noData: 'Neniuj datumoj'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Iru al',
|
||||
pagesize: '/ paĝo',
|
||||
total: 'Entute {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Mesaĝo',
|
||||
confirm: 'Bone',
|
||||
cancel: 'Nuligi',
|
||||
error: 'Nevalida Enigo!'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Premu "Delete" por forigi',
|
||||
delete: 'Forigi',
|
||||
preview: 'Antaŭrigardi',
|
||||
continue: 'Daŭrigi'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Neniuj datumoj',
|
||||
confirmFilter: 'Konfirmi',
|
||||
resetFilter: 'Restarigi',
|
||||
clearFilter: 'Ĉiuj',
|
||||
sumText: 'Sumo'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Neniuj datumoj'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Neniuj kongruaj datumoj',
|
||||
noData: 'Neniuj datumoj',
|
||||
titles: ['Listo 1', 'Listo 2'],
|
||||
filterPlaceholder: 'Enigu ŝlosilvorton',
|
||||
noCheckedFormat: '{total} elementoj',
|
||||
hasCheckedFormat: '{checked}/{total} elektitaj'
|
||||
},
|
||||
image: {
|
||||
error: 'MALSUKCESIS'
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Reen'
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
119
src/locale/lang/es.js
Normal file
119
src/locale/lang/es.js
Normal file
@@ -0,0 +1,119 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Confirmar',
|
||||
clear: 'Despejar'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Ahora',
|
||||
today: 'Hoy',
|
||||
cancel: 'Cancelar',
|
||||
clear: 'Despejar',
|
||||
confirm: 'Confirmar',
|
||||
selectDate: 'Seleccionar fecha',
|
||||
selectTime: 'Seleccionar hora',
|
||||
startDate: 'Fecha Incial',
|
||||
startTime: 'Hora Inicial',
|
||||
endDate: 'Fecha Final',
|
||||
endTime: 'Hora Final',
|
||||
prevYear: 'Año Anterior',
|
||||
nextYear: 'Próximo Año',
|
||||
prevMonth: 'Mes Anterior',
|
||||
nextMonth: 'Próximo Mes',
|
||||
year: '',
|
||||
month1: 'enero',
|
||||
month2: 'febrero',
|
||||
month3: 'marzo',
|
||||
month4: 'abril',
|
||||
month5: 'mayo',
|
||||
month6: 'junio',
|
||||
month7: 'julio',
|
||||
month8: 'agosto',
|
||||
month9: 'septiembre',
|
||||
month10: 'octubre',
|
||||
month11: 'noviembre',
|
||||
month12: 'diciembre',
|
||||
// week: 'semana',
|
||||
weeks: {
|
||||
sun: 'dom',
|
||||
mon: 'lun',
|
||||
tue: 'mar',
|
||||
wed: 'mié',
|
||||
thu: 'jue',
|
||||
fri: 'vie',
|
||||
sat: 'sáb'
|
||||
},
|
||||
months: {
|
||||
jan: 'ene',
|
||||
feb: 'feb',
|
||||
mar: 'mar',
|
||||
apr: 'abr',
|
||||
may: 'may',
|
||||
jun: 'jun',
|
||||
jul: 'jul',
|
||||
aug: 'ago',
|
||||
sep: 'sep',
|
||||
oct: 'oct',
|
||||
nov: 'nov',
|
||||
dec: 'dic'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Cargando',
|
||||
noMatch: 'No hay datos que coincidan',
|
||||
noData: 'Sin datos',
|
||||
placeholder: 'Seleccionar'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'No hay datos que coincidan',
|
||||
loading: 'Cargando',
|
||||
placeholder: 'Seleccionar',
|
||||
noData: 'Sin datos'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Ir a',
|
||||
pagesize: '/página',
|
||||
total: 'Total {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
confirm: 'Aceptar',
|
||||
cancel: 'Cancelar',
|
||||
error: 'Entrada inválida'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Pulse Eliminar para retirar',
|
||||
delete: 'Eliminar',
|
||||
preview: 'Vista Previa',
|
||||
continue: 'Continuar'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Sin Datos',
|
||||
confirmFilter: 'Confirmar',
|
||||
resetFilter: 'Reiniciar',
|
||||
clearFilter: 'Despejar',
|
||||
sumText: 'Suma'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Sin Datos'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'No hay datos que coincidan',
|
||||
noData: 'Sin datos',
|
||||
titles: ['Lista 1', 'Lista 2'],
|
||||
filterPlaceholder: 'Ingresar palabra clave',
|
||||
noCheckedFormat: '{total} artículos',
|
||||
hasCheckedFormat: '{checked}/{total} revisados'
|
||||
},
|
||||
image: {
|
||||
error: 'HA FALLADO'
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Volver'
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Si',
|
||||
cancelButtonText: 'No'
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/eu.js
Normal file
120
src/locale/lang/eu.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Ados',
|
||||
clear: 'Garbitu'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Orain',
|
||||
today: 'Gaur',
|
||||
cancel: 'Utzi',
|
||||
clear: 'Garbitu',
|
||||
confirm: 'Ados',
|
||||
selectDate: 'Hautatu data',
|
||||
selectTime: 'Hautatu ordua',
|
||||
startDate: 'Hasierako data',
|
||||
startTime: 'Hasierako ordua',
|
||||
endDate: 'Amaierako data',
|
||||
endTime: 'Amaierako ordua',
|
||||
prevYear: 'Aurreko urtea',
|
||||
nextYear: 'Hurrengo urtea',
|
||||
prevMonth: 'Aurreko hilabetea',
|
||||
nextMonth: 'Hurrengo hilabetea',
|
||||
year: '',
|
||||
month1: 'Urtarrila',
|
||||
month2: 'Otsaila',
|
||||
month3: 'Martxoa',
|
||||
month4: 'Apirila',
|
||||
month5: 'Maiatza',
|
||||
month6: 'Ekaina',
|
||||
month7: 'Uztaila',
|
||||
month8: 'Abuztua',
|
||||
month9: 'Iraila',
|
||||
month10: 'Urria',
|
||||
month11: 'Azaroa',
|
||||
month12: 'Abendua',
|
||||
// week: 'astea',
|
||||
weeks: {
|
||||
sun: 'ig.',
|
||||
mon: 'al.',
|
||||
tue: 'ar.',
|
||||
wed: 'az.',
|
||||
thu: 'og.',
|
||||
fri: 'ol.',
|
||||
sat: 'lr.'
|
||||
},
|
||||
months: {
|
||||
jan: 'urt',
|
||||
feb: 'ots',
|
||||
mar: 'mar',
|
||||
apr: 'api',
|
||||
may: 'mai',
|
||||
jun: 'eka',
|
||||
jul: 'uzt',
|
||||
aug: 'abu',
|
||||
sep: 'ira',
|
||||
oct: 'urr',
|
||||
nov: 'aza',
|
||||
dec: 'abe'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Kargatzen',
|
||||
noMatch: 'Bat datorren daturik ez',
|
||||
noData: 'Daturik ez',
|
||||
placeholder: 'Hautatu'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Bat datorren daturik ez',
|
||||
loading: 'Kargatzen',
|
||||
placeholder: 'Hautatu',
|
||||
noData: 'Daturik ez'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Joan',
|
||||
pagesize: '/orria',
|
||||
total: 'Guztira {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Mezua',
|
||||
confirm: 'Ados',
|
||||
cancel: 'Utzi',
|
||||
error: 'Sarrera baliogabea'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'sakatu Ezabatu kentzeko',
|
||||
delete: 'Ezabatu',
|
||||
preview: 'Aurrebista',
|
||||
continue: 'Jarraitu'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Daturik ez',
|
||||
confirmFilter: 'Baieztatu',
|
||||
resetFilter: 'Berrezarri',
|
||||
clearFilter: 'Guztia',
|
||||
sumText: 'Batura'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Daturik ez'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Bat datorren daturik ez',
|
||||
noData: 'Daturik ez',
|
||||
titles: ['Zerrenda 1', 'Zerrenda 2'], // to be translated
|
||||
filterPlaceholder: 'Sartu gako-hitza', // to be translated
|
||||
noCheckedFormat: '{total} elementu', // to be translated
|
||||
hasCheckedFormat: '{checked}/{total} hautatuta' // to be translated
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/fa.js
Normal file
120
src/locale/lang/fa.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'باشد',
|
||||
clear: 'حذف'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'اکنون',
|
||||
today: 'امروز',
|
||||
cancel: 'لغو',
|
||||
clear: 'حذف',
|
||||
confirm: 'باشه',
|
||||
selectDate: 'انتخاب تاریخ',
|
||||
selectTime: 'انتخاب زمان',
|
||||
startDate: 'تاریخ شروع',
|
||||
startTime: 'زمان شروع',
|
||||
endDate: 'تاریخ پایان',
|
||||
endTime: 'زمان پایان',
|
||||
prevYear: 'سال قبل',
|
||||
nextYear: 'سال بعد',
|
||||
prevMonth: 'ماه قبل',
|
||||
nextMonth: 'ماه بعد',
|
||||
year: 'سال',
|
||||
month1: 'ژانویه',
|
||||
month2: 'فوریه',
|
||||
month3: 'مارس',
|
||||
month4: 'آوریل',
|
||||
month5: 'مه',
|
||||
month6: 'ژوئن',
|
||||
month7: 'جولای',
|
||||
month8: 'اوت',
|
||||
month9: 'سپتامبر',
|
||||
month10: 'اکتبر',
|
||||
month11: 'نوامبر',
|
||||
month12: 'دسامبر',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'یکشنبه',
|
||||
mon: 'دوشنبه',
|
||||
tue: 'سهشنبه',
|
||||
wed: 'چهارشنبه',
|
||||
thu: 'پنجشنبه',
|
||||
fri: 'جمعه',
|
||||
sat: 'شنبه'
|
||||
},
|
||||
months: {
|
||||
jan: 'ژانویه',
|
||||
feb: 'فوریه',
|
||||
mar: 'مارس',
|
||||
apr: 'آوریل',
|
||||
may: 'مه',
|
||||
jun: 'ژوئن',
|
||||
jul: 'جولای',
|
||||
aug: 'اوت',
|
||||
sep: 'سپتامبر',
|
||||
oct: 'اکتبر',
|
||||
nov: 'نوامبر',
|
||||
dec: 'دسامبر'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'بارگیری',
|
||||
noMatch: 'هیچ دادهای پیدا نشد',
|
||||
noData: 'اطلاعاتی وجود ندارد',
|
||||
placeholder: 'انتخاب کنید'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'هیچ دادهای پیدا نشد',
|
||||
loading: 'بارگیری',
|
||||
placeholder: 'انتخاب کنید',
|
||||
noData: 'اطلاعاتی وجود ندارد'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'برو به',
|
||||
pagesize: '/صفحه',
|
||||
total: 'مجموع {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'پیام',
|
||||
confirm: 'باشه',
|
||||
cancel: 'لغو',
|
||||
error: 'ورودی غیر مجاز'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'برای پاک کردن حذف را فشار دهید',
|
||||
delete: 'حذف',
|
||||
preview: 'پیشنمایش',
|
||||
continue: 'ادامه'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'اطلاعاتی وجود ندارد',
|
||||
confirmFilter: 'تایید',
|
||||
resetFilter: 'حذف',
|
||||
clearFilter: 'همه',
|
||||
sumText: 'جمع'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'اطلاعاتی وجود ندارد'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'هیچ دادهای پیدا نشد',
|
||||
noData: 'اطلاعاتی وجود ندارد',
|
||||
titles: ['لیست 1', 'لیست 2'],
|
||||
filterPlaceholder: 'کلید واژه هارو وارد کن',
|
||||
noCheckedFormat: '{total} مورد',
|
||||
hasCheckedFormat: '{checked} مورد از {total} مورد انتخاب شده است'
|
||||
},
|
||||
image: {
|
||||
error: 'خطا در بارگیری تصویر'
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'بازگشت'
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/fi.js
Normal file
120
src/locale/lang/fi.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Tyhjennä'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Nyt',
|
||||
today: 'Tänään',
|
||||
cancel: 'Peruuta',
|
||||
clear: 'Tyhjennä',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Valitse päivä',
|
||||
selectTime: 'Valitse aika',
|
||||
startDate: 'Aloituspäivä',
|
||||
startTime: 'Aloitusaika',
|
||||
endDate: 'Lopetuspäivä',
|
||||
endTime: 'Lopetusaika',
|
||||
prevYear: 'Edellinen vuosi',
|
||||
nextYear: 'Seuraava vuosi',
|
||||
prevMonth: 'Edellinen kuukausi',
|
||||
nextMonth: 'Seuraava kuukausi',
|
||||
year: '',
|
||||
month1: 'tammikuu',
|
||||
month2: 'helmikuu',
|
||||
month3: 'maaliskuu',
|
||||
month4: 'huhtikuu',
|
||||
month5: 'toukokuu',
|
||||
month6: 'kesäkuu',
|
||||
month7: 'heinäkuu',
|
||||
month8: 'elokuu',
|
||||
month9: 'syyskuu',
|
||||
month10: 'lokakuu',
|
||||
month11: 'marraskuu',
|
||||
month12: 'joulukuu',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'su',
|
||||
mon: 'ma',
|
||||
tue: 'ti',
|
||||
wed: 'ke',
|
||||
thu: 'to',
|
||||
fri: 'pe',
|
||||
sat: 'la'
|
||||
},
|
||||
months: {
|
||||
jan: 'tammi',
|
||||
feb: 'helmi',
|
||||
mar: 'maalis',
|
||||
apr: 'huhti',
|
||||
may: 'touko',
|
||||
jun: 'kesä',
|
||||
jul: 'heinä',
|
||||
aug: 'elo',
|
||||
sep: 'syys',
|
||||
oct: 'loka',
|
||||
nov: 'marras',
|
||||
dec: 'joulu'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Lataa',
|
||||
noMatch: 'Ei vastaavia tietoja',
|
||||
noData: 'Ei tietoja',
|
||||
placeholder: 'Valitse'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Ei vastaavia tietoja',
|
||||
loading: 'Lataa',
|
||||
placeholder: 'Valitse',
|
||||
noData: 'Ei tietoja'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Mene',
|
||||
pagesize: '/sivu',
|
||||
total: 'Yhteensä {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Viesti',
|
||||
confirm: 'OK',
|
||||
cancel: 'Peruuta',
|
||||
error: 'Virheellinen syöte'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Poista Delete-näppäimellä',
|
||||
delete: 'Poista',
|
||||
preview: 'Esikatsele',
|
||||
continue: 'Jatka'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Ei tietoja',
|
||||
confirmFilter: 'Vahvista',
|
||||
resetFilter: 'Tyhjennä',
|
||||
clearFilter: 'Kaikki',
|
||||
sumText: 'Summa'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Ei tietoja'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Ei vastaavia tietoja',
|
||||
noData: 'Ei tietoja',
|
||||
titles: ['Luettelo 1', 'Luettelo 2'],
|
||||
filterPlaceholder: 'Syötä hakusana',
|
||||
noCheckedFormat: '{total} kohdetta',
|
||||
hasCheckedFormat: '{checked}/{total} valittu'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
119
src/locale/lang/fr.js
Normal file
119
src/locale/lang/fr.js
Normal file
@@ -0,0 +1,119 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Effacer'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Maintenant',
|
||||
today: 'Auj.',
|
||||
cancel: 'Annuler',
|
||||
clear: 'Effacer',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Choisir date',
|
||||
selectTime: 'Choisir horaire',
|
||||
startDate: 'Date début',
|
||||
startTime: 'Horaire début',
|
||||
endDate: 'Date fin',
|
||||
endTime: 'Horaire fin',
|
||||
prevYear: 'Année précédente',
|
||||
nextYear: 'Année suivante',
|
||||
prevMonth: 'Mois précédent',
|
||||
nextMonth: 'Mois suivant',
|
||||
year: '', // In french, like in english, we don't say "Année" after the year number.
|
||||
month1: 'Janvier',
|
||||
month2: 'Février',
|
||||
month3: 'Mars',
|
||||
month4: 'Avril',
|
||||
month5: 'Mai',
|
||||
month6: 'Juin',
|
||||
month7: 'Juillet',
|
||||
month8: 'Août',
|
||||
month9: 'Septembre',
|
||||
month10: 'Octobre',
|
||||
month11: 'Novembre',
|
||||
month12: 'Décembre',
|
||||
// week: 'Semaine',
|
||||
weeks: {
|
||||
sun: 'Dim',
|
||||
mon: 'Lun',
|
||||
tue: 'Mar',
|
||||
wed: 'Mer',
|
||||
thu: 'Jeu',
|
||||
fri: 'Ven',
|
||||
sat: 'Sam'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Fév',
|
||||
mar: 'Mar',
|
||||
apr: 'Avr',
|
||||
may: 'Mai',
|
||||
jun: 'Jun',
|
||||
jul: 'Jul',
|
||||
aug: 'Aoû',
|
||||
sep: 'Sep',
|
||||
oct: 'Oct',
|
||||
nov: 'Nov',
|
||||
dec: 'Déc'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Chargement',
|
||||
noMatch: 'Aucune correspondance',
|
||||
noData: 'Aucune donnée',
|
||||
placeholder: 'Choisir'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Aucune correspondance',
|
||||
loading: 'Chargement',
|
||||
placeholder: 'Choisir',
|
||||
noData: 'Aucune donnée'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Aller à',
|
||||
pagesize: '/page',
|
||||
total: 'Total {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
confirm: 'Confirmer',
|
||||
cancel: 'Annuler',
|
||||
error: 'Erreur'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Cliquer sur supprimer pour retirer le fichier',
|
||||
delete: 'Supprimer',
|
||||
preview: 'Aperçu',
|
||||
continue: 'Continuer'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Aucune donnée',
|
||||
confirmFilter: 'Confirmer',
|
||||
resetFilter: 'Réinitialiser',
|
||||
clearFilter: 'Tous',
|
||||
sumText: 'Somme'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Aucune donnée'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Aucune correspondance',
|
||||
noData: 'Aucune donnée',
|
||||
titles: ['Liste 1', 'Liste 2'],
|
||||
filterPlaceholder: 'Entrer un mot clef',
|
||||
noCheckedFormat: '{total} elements',
|
||||
hasCheckedFormat: '{checked}/{total} coché(s)'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/he.js
Normal file
120
src/locale/lang/he.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'אישור',
|
||||
clear: 'נקה'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'כעת',
|
||||
today: 'היום',
|
||||
cancel: 'בטל',
|
||||
clear: 'נקה',
|
||||
confirm: 'אישור',
|
||||
selectDate: 'בחר תאריך',
|
||||
selectTime: 'בחר זמן',
|
||||
startDate: 'תאריך התחלה',
|
||||
startTime: 'זמן התחלה',
|
||||
endDate: 'תאריך סיום',
|
||||
endTime: 'זמן סיום',
|
||||
prevYear: 'Previous Year', // to be translated
|
||||
nextYear: 'Next Year', // to be translated
|
||||
prevMonth: 'Previous Month', // to be translated
|
||||
nextMonth: 'Next Month', // to be translated
|
||||
year: '',
|
||||
month1: 'ינואר',
|
||||
month2: 'פברואר',
|
||||
month3: 'מרץ',
|
||||
month4: 'אפריל',
|
||||
month5: 'מאי',
|
||||
month6: 'יוני',
|
||||
month7: 'יולי',
|
||||
month8: 'אוגוסט',
|
||||
month9: 'ספטמבר',
|
||||
month10: 'אוקטובר',
|
||||
month11: 'נובמבר',
|
||||
month12: 'דצמבר',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'א׳',
|
||||
mon: 'ב׳',
|
||||
tue: 'ג׳',
|
||||
wed: 'ד׳',
|
||||
thu: 'ה׳',
|
||||
fri: 'ו׳',
|
||||
sat: 'שבת'
|
||||
},
|
||||
months: {
|
||||
jan: 'ינואר',
|
||||
feb: 'פברואר',
|
||||
mar: 'מרץ',
|
||||
apr: 'אפריל',
|
||||
may: 'מאי',
|
||||
jun: 'יוני',
|
||||
jul: 'יולי',
|
||||
aug: 'אוגוסט',
|
||||
sep: 'ספטמבר',
|
||||
oct: 'אוקטובר',
|
||||
nov: 'נובמבר',
|
||||
dec: 'דצמבר'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'טוען',
|
||||
noMatch: 'לא נמצאו נתונים',
|
||||
noData: 'ללא נתונים',
|
||||
placeholder: 'בחר'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'ללא נתונים מתאימים',
|
||||
loading: 'טוען',
|
||||
placeholder: 'בחר',
|
||||
noData: 'ללא נתונים'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'עבור ל',
|
||||
pagesize: '/page',
|
||||
total: 'כולל {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'הודעה',
|
||||
confirm: 'אישור',
|
||||
cancel: 'בטל',
|
||||
error: 'קלט לא תקין'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'press delete to remove', // to be translated
|
||||
delete: 'מחק',
|
||||
preview: 'תצוגה מקדימה',
|
||||
continue: 'המשך'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'אין נתונים',
|
||||
confirmFilter: 'אישור',
|
||||
resetFilter: 'נקה',
|
||||
clearFilter: 'הכל',
|
||||
sumText: 'סך'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'אין נתונים'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'אין נתונים מתאימים',
|
||||
noData: 'ללא נתונים',
|
||||
titles: ['רשימה 1', 'רשימה 2'],
|
||||
filterPlaceholder: 'הקלד',
|
||||
noCheckedFormat: 'פריטים {total}',
|
||||
hasCheckedFormat: ' אישור {checked}/{total}'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/hr.js
Normal file
120
src/locale/lang/hr.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Očisti'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Sada',
|
||||
today: 'Danas',
|
||||
cancel: 'Otkaži',
|
||||
clear: 'Očisti',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Odaberi datum',
|
||||
selectTime: 'Odaberi vrijeme',
|
||||
startDate: 'Datum početka',
|
||||
startTime: 'Vrijeme početka',
|
||||
endDate: 'Datum završetka',
|
||||
endTime: 'Vrijeme završetka',
|
||||
prevYear: 'Prethodna godina',
|
||||
nextYear: 'Sljedeća godina',
|
||||
prevMonth: 'Prethodni mjesec',
|
||||
nextMonth: 'Sljedeći mjesec',
|
||||
year: '',
|
||||
month1: 'Siječanj',
|
||||
month2: 'Veljača',
|
||||
month3: 'Ožujak',
|
||||
month4: 'Travanj',
|
||||
month5: 'Svibanj',
|
||||
month6: 'Lipanj',
|
||||
month7: 'Srpanj',
|
||||
month8: 'Kolovoz',
|
||||
month9: 'Rujan',
|
||||
month10: 'Listopad',
|
||||
month11: 'Studeni',
|
||||
month12: 'Prosinac',
|
||||
week: 'tjedan',
|
||||
weeks: {
|
||||
sun: 'Pon',
|
||||
mon: 'Uto',
|
||||
tue: 'Sri',
|
||||
wed: 'Čet',
|
||||
thu: 'Pet',
|
||||
fri: 'Sub',
|
||||
sat: 'Ned'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Feb',
|
||||
mar: 'Mar',
|
||||
apr: 'Apr',
|
||||
may: 'May',
|
||||
jun: 'Jun',
|
||||
jul: 'Jul',
|
||||
aug: 'Aug',
|
||||
sep: 'Sep',
|
||||
oct: 'Oct',
|
||||
nov: 'Nov',
|
||||
dec: 'Dec'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Učitavanje',
|
||||
noMatch: 'Nema pronađenih podataka',
|
||||
noData: 'Nema podataka',
|
||||
placeholder: 'Izaberi'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Nema pronađenih podataka',
|
||||
loading: 'Učitavanje',
|
||||
placeholder: 'Izaberi',
|
||||
noData: 'Nema podataka'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Idi na',
|
||||
pagesize: '/stranica',
|
||||
total: 'Ukupno {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Poruka',
|
||||
confirm: 'OK',
|
||||
cancel: 'Otkaži',
|
||||
error: 'Pogrešan unos'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'pritisnite izbriši za brisanje',
|
||||
delete: 'Izbriši',
|
||||
preview: 'Pregled',
|
||||
continue: 'Nastavak'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Nema podataka',
|
||||
confirmFilter: 'Potvrdi',
|
||||
resetFilter: 'Resetiraj',
|
||||
clearFilter: 'Sve',
|
||||
sumText: 'Suma'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Nema podataka'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Nema pronađenih podataka',
|
||||
noData: 'Nema podataka',
|
||||
titles: ['Lista 1', 'Lista 2'], // to be translated
|
||||
filterPlaceholder: 'Unesite ključnu riječ', // to be translated
|
||||
noCheckedFormat: '{total} stavki', // to be translated
|
||||
hasCheckedFormat: '{checked}/{total} checked' // to be translated
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
119
src/locale/lang/hu.js
Normal file
119
src/locale/lang/hu.js
Normal file
@@ -0,0 +1,119 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Törlés'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Most',
|
||||
today: 'Ma',
|
||||
cancel: 'Mégse',
|
||||
clear: 'Törlés',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Dátum',
|
||||
selectTime: 'Időpont',
|
||||
startDate: 'Dátum-tól',
|
||||
startTime: 'Időpont-tól',
|
||||
endDate: 'Dátum-ig',
|
||||
endTime: 'Időpont-ig',
|
||||
prevYear: 'Előző év',
|
||||
nextYear: 'Következő év',
|
||||
prevMonth: 'Előző hónap',
|
||||
nextMonth: 'Következő hónap',
|
||||
year: '',
|
||||
month1: 'Január',
|
||||
month2: 'Február',
|
||||
month3: 'Március',
|
||||
month4: 'Április',
|
||||
month5: 'Május',
|
||||
month6: 'Június',
|
||||
month7: 'Július',
|
||||
month8: 'Augusztus',
|
||||
month9: 'Szeptember',
|
||||
month10: 'Október',
|
||||
month11: 'November',
|
||||
month12: 'December',
|
||||
weeks: {
|
||||
sun: 'Vas',
|
||||
mon: 'Hét',
|
||||
tue: 'Ked',
|
||||
wed: 'Sze',
|
||||
thu: 'Csü',
|
||||
fri: 'Pén',
|
||||
sat: 'Szo'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Feb',
|
||||
mar: 'Már',
|
||||
apr: 'Ápr',
|
||||
may: 'Máj',
|
||||
jun: 'Jún',
|
||||
jul: 'Júl',
|
||||
aug: 'Aug',
|
||||
sep: 'Szep',
|
||||
oct: 'Okt',
|
||||
nov: 'Nov',
|
||||
dec: 'Dec'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Betöltés',
|
||||
noMatch: 'Nincs találat',
|
||||
noData: 'Nincs adat',
|
||||
placeholder: 'Válassz'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Nincs találat',
|
||||
loading: 'Betöltés',
|
||||
placeholder: 'Válassz',
|
||||
noData: 'Nincs adat'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Ugrás',
|
||||
pagesize: '/oldal',
|
||||
total: 'Össz {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Üzenet',
|
||||
confirm: 'OK',
|
||||
cancel: 'Mégse',
|
||||
error: 'Hibás adat'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'kattints a törléshez',
|
||||
delete: 'Törlés',
|
||||
preview: 'Előnézet',
|
||||
continue: 'Tovább'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Nincs adat',
|
||||
confirmFilter: 'Megerősít',
|
||||
resetFilter: 'Alaphelyet',
|
||||
clearFilter: 'Mind',
|
||||
sumText: 'Összeg'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Nincs adat'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Nincs találat',
|
||||
noData: 'Nincs adat',
|
||||
titles: ['Lista 1', 'Lista 2'],
|
||||
filterPlaceholder: 'Kulcsszó',
|
||||
noCheckedFormat: '{total} elem',
|
||||
hasCheckedFormat: '{checked}/{total} kiválasztva'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/hy-AM.js
Normal file
120
src/locale/lang/hy-AM.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Լաւ',
|
||||
clear: 'Մաքրել'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Հիմա',
|
||||
today: 'Այսօր',
|
||||
cancel: 'Չեղարկել',
|
||||
clear: 'Մաքրել',
|
||||
confirm: 'Լաւ',
|
||||
selectDate: 'Ընտրեք ամսաթիւը',
|
||||
selectTime: 'Ընտրեք ժամանակը',
|
||||
startDate: 'Սկզբ. ամսաթիւը',
|
||||
startTime: 'Սկզբ. ժամանակը',
|
||||
endDate: 'Վերջ. ամսաթիվը',
|
||||
endTime: 'Վերջ. ժամանակը',
|
||||
prevYear: 'Նախորդ տարի',
|
||||
nextYear: 'Յաջորդ տարի',
|
||||
prevMonth: 'Նախորդ ամիս',
|
||||
nextMonth: 'Յաջորդ ամիս',
|
||||
year: 'Տարի',
|
||||
month1: 'Յունուար',
|
||||
month2: 'Փետրուար',
|
||||
month3: 'Մարտ',
|
||||
month4: 'Ապրիլ',
|
||||
month5: 'Մայիս',
|
||||
month6: 'Յունիս',
|
||||
month7: 'Յուլիս',
|
||||
month8: 'Օգոստոս',
|
||||
month9: 'Սեպտեմբեր',
|
||||
month10: 'Յոկտեմբեր',
|
||||
month11: 'Նոյեմբեր',
|
||||
month12: 'Դեկտեմբեր',
|
||||
week: 'Շաբաթ',
|
||||
weeks: {
|
||||
sun: 'Կիր',
|
||||
mon: 'Երկ',
|
||||
tue: 'Եր',
|
||||
wed: 'Չոր',
|
||||
thu: 'Հինգ',
|
||||
fri: 'Ուրբ',
|
||||
sat: 'Շաբ'
|
||||
},
|
||||
months: {
|
||||
jan: 'Յունվ',
|
||||
feb: 'Փետ',
|
||||
mar: 'Մար',
|
||||
apr: 'Ապր',
|
||||
may: 'Մայ',
|
||||
jun: 'Յուն',
|
||||
jul: 'Յուլ',
|
||||
aug: 'Օգ',
|
||||
sep: 'Սեպտ',
|
||||
oct: 'Յոկ',
|
||||
nov: 'Նոյ',
|
||||
dec: 'Դեկ'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Բեռնում',
|
||||
noMatch: 'Համապատասխան տուեալներ չկան',
|
||||
noData: 'Տվյալներ չկան',
|
||||
placeholder: 'Ընտրել'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Համապատասխան տուեալներ չկան',
|
||||
loading: 'Բեռնում',
|
||||
placeholder: 'Ընտրել',
|
||||
noData: 'Տվյալներ չկան'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Անցնել',
|
||||
pagesize: ' էջում',
|
||||
total: 'Ընդամենը {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Հաղորդագրութիւն',
|
||||
confirm: 'Լաւ',
|
||||
cancel: 'Չեղարկել',
|
||||
error: 'Անվաւեր տուեալների մուտք'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Սեղմեք [Ջնջել] ջնջելու համար',
|
||||
delete: 'Ջնջել',
|
||||
preview: 'Նախադիտում',
|
||||
continue: 'Շարունակել'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Տուեալներ չկան',
|
||||
confirmFilter: 'Յաստատել',
|
||||
resetFilter: 'Վերագործարկել',
|
||||
clearFilter: 'Բոլորը',
|
||||
sumText: 'Գումարը'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Տուեալներ չկան'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Համապատասխան տուեալներ չկան',
|
||||
noData: 'Տուեալներ չկան',
|
||||
titles: ['Ցուցակ 1', 'Ցուցակ 2'],
|
||||
filterPlaceholder: 'Մուտքագրեք բանալի բառ',
|
||||
noCheckedFormat: '{total} միաւոր',
|
||||
hasCheckedFormat: '{checked}/{total} ընտրուած է'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/id.js
Normal file
120
src/locale/lang/id.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Pilih',
|
||||
clear: 'Kosongkan'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Sekarang',
|
||||
today: 'Hari ini',
|
||||
cancel: 'Batal',
|
||||
clear: 'Kosongkan',
|
||||
confirm: 'Ya',
|
||||
selectDate: 'Pilih tanggal',
|
||||
selectTime: 'Pilih waktu',
|
||||
startDate: 'Tanggal Mulai',
|
||||
startTime: 'Waktu Mulai',
|
||||
endDate: 'Tanggal Selesai',
|
||||
endTime: 'Waktu Selesai',
|
||||
prevYear: 'Tahun Sebelumnya',
|
||||
nextYear: 'Tahun Selanjutnya',
|
||||
prevMonth: 'Bulan Sebelumnya',
|
||||
nextMonth: 'Bulan Selanjutnya',
|
||||
year: 'Tahun',
|
||||
month1: 'Januari',
|
||||
month2: 'Februari',
|
||||
month3: 'Maret',
|
||||
month4: 'April',
|
||||
month5: 'Mei',
|
||||
month6: 'Juni',
|
||||
month7: 'Juli',
|
||||
month8: 'Agustus',
|
||||
month9: 'September',
|
||||
month10: 'Oktober',
|
||||
month11: 'November',
|
||||
month12: 'Desember',
|
||||
// week: 'minggu',
|
||||
weeks: {
|
||||
sun: 'Min',
|
||||
mon: 'Sen',
|
||||
tue: 'Sel',
|
||||
wed: 'Rab',
|
||||
thu: 'Kam',
|
||||
fri: 'Jum',
|
||||
sat: 'Sab'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Feb',
|
||||
mar: 'Mar',
|
||||
apr: 'Apr',
|
||||
may: 'Mei',
|
||||
jun: 'Jun',
|
||||
jul: 'Jul',
|
||||
aug: 'Agu',
|
||||
sep: 'Sep',
|
||||
oct: 'Okt',
|
||||
nov: 'Nov',
|
||||
dec: 'Des'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Memuat',
|
||||
noMatch: 'Tidak ada data yg cocok',
|
||||
noData: 'Tidak ada data',
|
||||
placeholder: 'Pilih'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Tidak ada data yg cocok',
|
||||
loading: 'Memuat',
|
||||
placeholder: 'Pilih',
|
||||
noData: 'Tidak ada data'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Pergi ke',
|
||||
pagesize: '/laman',
|
||||
total: 'Total {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Pesan',
|
||||
confirm: 'Ya',
|
||||
cancel: 'Batal',
|
||||
error: 'Masukan ilegal'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Tekan hapus untuk melanjutkan',
|
||||
delete: 'Hapus',
|
||||
preview: 'Pratinjau',
|
||||
continue: 'Lanjutkan'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Tidak ada data',
|
||||
confirmFilter: 'Konfirmasi',
|
||||
resetFilter: 'Atur ulang',
|
||||
clearFilter: 'Semua',
|
||||
sumText: 'Jml'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Tidak ada data'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Tidak ada data yg cocok',
|
||||
noData: 'Tidak ada data',
|
||||
titles: ['Senarai 1', 'Senarai 2'],
|
||||
filterPlaceholder: 'Masukan kata kunci',
|
||||
noCheckedFormat: '{total} butir',
|
||||
hasCheckedFormat: '{checked}/{total} terpilih'
|
||||
},
|
||||
image: {
|
||||
error: 'GAGAL'
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Kembali'
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Ya',
|
||||
cancelButtonText: 'Tidak'
|
||||
}
|
||||
}
|
||||
};
|
119
src/locale/lang/it.js
Normal file
119
src/locale/lang/it.js
Normal file
@@ -0,0 +1,119 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Pulisci'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Ora',
|
||||
today: 'Oggi',
|
||||
cancel: 'Cancella',
|
||||
clear: 'Pulisci',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Seleziona data',
|
||||
selectTime: 'Seleziona ora',
|
||||
startDate: 'Data inizio',
|
||||
startTime: 'Ora inizio',
|
||||
endDate: 'Data fine',
|
||||
endTime: 'Ora fine',
|
||||
prevYear: 'Anno precedente',
|
||||
nextYear: 'Anno successivo',
|
||||
prevMonth: 'Mese precedente',
|
||||
nextMonth: 'Mese successivo',
|
||||
year: '',
|
||||
month1: 'Gennaio',
|
||||
month2: 'Febbraio',
|
||||
month3: 'Marzo',
|
||||
month4: 'Aprile',
|
||||
month5: 'Maggio',
|
||||
month6: 'Giugno',
|
||||
month7: 'Luglio',
|
||||
month8: 'Agosto',
|
||||
month9: 'Settembre',
|
||||
month10: 'Ottobre',
|
||||
month11: 'Novembre',
|
||||
month12: 'Dicembre',
|
||||
// week: 'settimana',
|
||||
weeks: {
|
||||
sun: 'Dom',
|
||||
mon: 'Lun',
|
||||
tue: 'Mar',
|
||||
wed: 'Mer',
|
||||
thu: 'Gio',
|
||||
fri: 'Ven',
|
||||
sat: 'Sab'
|
||||
},
|
||||
months: {
|
||||
jan: 'Gen',
|
||||
feb: 'Feb',
|
||||
mar: 'Mar',
|
||||
apr: 'Apr',
|
||||
may: 'Mag',
|
||||
jun: 'Giu',
|
||||
jul: 'Lug',
|
||||
aug: 'Ago',
|
||||
sep: 'Set',
|
||||
oct: 'Ott',
|
||||
nov: 'Nov',
|
||||
dec: 'Dic'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Caricamento',
|
||||
noMatch: 'Nessuna corrispondenza',
|
||||
noData: 'Nessun dato',
|
||||
placeholder: 'Seleziona'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Nessuna corrispondenza',
|
||||
loading: 'Caricamento',
|
||||
placeholder: 'Seleziona',
|
||||
noData: 'Nessun dato'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Vai a',
|
||||
pagesize: '/page',
|
||||
total: 'Totale {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
confirm: 'OK',
|
||||
cancel: 'Cancella',
|
||||
error: 'Input non valido'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Premi cancella per rimuovere',
|
||||
delete: 'Cancella',
|
||||
preview: 'Anteprima',
|
||||
continue: 'Continua'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Nessun dato',
|
||||
confirmFilter: 'Conferma',
|
||||
resetFilter: 'Reset',
|
||||
clearFilter: 'Tutti',
|
||||
sumText: 'Somma'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Nessun dato'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Nessuna corrispondenza',
|
||||
noData: 'Nessun dato',
|
||||
titles: ['Lista 1', 'Lista 2'],
|
||||
filterPlaceholder: 'Inserisci filtro',
|
||||
noCheckedFormat: '{total} elementi',
|
||||
hasCheckedFormat: '{checked}/{total} selezionati'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/ja.js
Normal file
120
src/locale/lang/ja.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'クリア'
|
||||
},
|
||||
datepicker: {
|
||||
now: '現在',
|
||||
today: '今日',
|
||||
cancel: 'キャンセル',
|
||||
clear: 'クリア',
|
||||
confirm: 'OK',
|
||||
selectDate: '日付を選択',
|
||||
selectTime: '時間を選択',
|
||||
startDate: '開始日',
|
||||
startTime: '開始時間',
|
||||
endDate: '終了日',
|
||||
endTime: '終了時間',
|
||||
prevYear: '前年',
|
||||
nextYear: '翌年',
|
||||
prevMonth: '前月',
|
||||
nextMonth: '翌月',
|
||||
year: '年',
|
||||
month1: '1月',
|
||||
month2: '2月',
|
||||
month3: '3月',
|
||||
month4: '4月',
|
||||
month5: '5月',
|
||||
month6: '6月',
|
||||
month7: '7月',
|
||||
month8: '8月',
|
||||
month9: '9月',
|
||||
month10: '10月',
|
||||
month11: '11月',
|
||||
month12: '12月',
|
||||
// week: '週次',
|
||||
weeks: {
|
||||
sun: '日',
|
||||
mon: '月',
|
||||
tue: '火',
|
||||
wed: '水',
|
||||
thu: '木',
|
||||
fri: '金',
|
||||
sat: '土'
|
||||
},
|
||||
months: {
|
||||
jan: '1月',
|
||||
feb: '2月',
|
||||
mar: '3月',
|
||||
apr: '4月',
|
||||
may: '5月',
|
||||
jun: '6月',
|
||||
jul: '7月',
|
||||
aug: '8月',
|
||||
sep: '9月',
|
||||
oct: '10月',
|
||||
nov: '11月',
|
||||
dec: '12月'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'ロード中',
|
||||
noMatch: 'データなし',
|
||||
noData: 'データなし',
|
||||
placeholder: '選択してください'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'データなし',
|
||||
loading: 'ロード中',
|
||||
placeholder: '選択してください',
|
||||
noData: 'データなし'
|
||||
},
|
||||
pagination: {
|
||||
goto: '',
|
||||
pagesize: '件/ページ',
|
||||
total: '総計 {total} 件',
|
||||
pageClassifier: 'ページ目へ'
|
||||
},
|
||||
messagebox: {
|
||||
title: 'メッセージ',
|
||||
confirm: 'OK',
|
||||
cancel: 'キャンセル',
|
||||
error: '正しくない入力'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Delキーを押して削除する',
|
||||
delete: '削除する',
|
||||
preview: 'プレビュー',
|
||||
continue: '続行する'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'データなし',
|
||||
confirmFilter: '確認',
|
||||
resetFilter: '初期化',
|
||||
clearFilter: 'すべて',
|
||||
sumText: '合計'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'データなし'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'データなし',
|
||||
noData: 'データなし',
|
||||
titles: ['リスト 1', 'リスト 2'],
|
||||
filterPlaceholder: 'キーワードを入力',
|
||||
noCheckedFormat: '総計 {total} 件',
|
||||
hasCheckedFormat: '{checked}/{total} を選択した'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/kg.js
Normal file
120
src/locale/lang/kg.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Мурунку',
|
||||
clear: 'ачык'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'азыр',
|
||||
today: 'бүгүн',
|
||||
cancel: 'жокко чыгарылды',
|
||||
clear: 'ачык',
|
||||
confirm: 'белгилөө',
|
||||
selectDate: 'дата',
|
||||
selectTime: 'тандоо убактысы',
|
||||
startDate: 'Башталган датасы',
|
||||
startTime: 'Start убакыт',
|
||||
endDate: 'Бүткөн датасы',
|
||||
endTime: 'End убакыт',
|
||||
prevYear: 'өткөн жылы',
|
||||
nextYear: 'бир жылдан кийин',
|
||||
prevMonth: 'Өткөн айда',
|
||||
nextMonth: 'Кийинки ай',
|
||||
year: 'жыл',
|
||||
month1: 'биринчи ай',
|
||||
month2: 'Экинчи айда',
|
||||
month3: 'Үчүнчү айда',
|
||||
month4: 'Төртүнчү айда',
|
||||
month5: 'бешинчи айда',
|
||||
month6: 'Алгачкы алты ай',
|
||||
month7: 'жетинчи айда',
|
||||
month8: 'сегизинчи ай',
|
||||
month9: 'Алгачкы тогуз ай',
|
||||
month10: 'онунчу айда',
|
||||
month11: 'он биринчи ай',
|
||||
month12: 'он экинчи айда',
|
||||
// week: '周次',
|
||||
weeks: {
|
||||
sun: 'жети жума',
|
||||
mon: 'дүйшөмбү',
|
||||
tue: 'шейшемби',
|
||||
wed: 'шаршемби',
|
||||
thu: 'бейшемби',
|
||||
fri: 'жума',
|
||||
sat: 'ишемби'
|
||||
},
|
||||
months: {
|
||||
jan: 'биринчи ай',
|
||||
feb: 'Экинчи айда',
|
||||
mar: 'Үчүнчү айда',
|
||||
apr: 'Төртүнчү айда',
|
||||
may: 'бешинчи айда',
|
||||
jun: 'Алгачкы алты ай',
|
||||
jul: 'жетинчи айда',
|
||||
aug: 'сегизинчи ай',
|
||||
sep: 'Алгачкы тогуз ай',
|
||||
oct: 'онунчу айда',
|
||||
nov: 'он биринчи ай',
|
||||
dec: 'он экинчи айда'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Жүктөлүүдө',
|
||||
noMatch: 'Дал келген маалыматтар',
|
||||
noData: 'маалымат жок',
|
||||
placeholder: 'тандоо'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Дал келген маалыматтар',
|
||||
loading: 'Жүктөлүүдө',
|
||||
placeholder: 'тандоо',
|
||||
noData: 'маалымат жок'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Мурунку',
|
||||
pagesize: 'бир',
|
||||
total: 'бүтүндөй {total} сан ',
|
||||
pageClassifier: 'бет'
|
||||
},
|
||||
messagebox: {
|
||||
title: 'тез',
|
||||
confirm: 'белгилөө',
|
||||
cancel: 'жокко чыгарылды',
|
||||
error: 'Маалыматтарды киргизүү мыйзамдуу эмес!'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Жок кылуу баскычын басуу жок',
|
||||
delete: 'жок кылуу',
|
||||
preview: 'ЖМКнын картинки',
|
||||
continue: 'жүктөп бер'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'маалымат жок',
|
||||
confirmFilter: 'чыпка',
|
||||
resetFilter: 'кайра орнотуу',
|
||||
clearFilter: 'бүткөн',
|
||||
sumText: 'Бардыгы болуп'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'маалымат жок'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Дал келген маалыматтар',
|
||||
noData: 'маалымат жок',
|
||||
titles: ['1 тизмеси', '2 тизмеси'],
|
||||
filterPlaceholder: 'Сураныч, издөө кирет',
|
||||
noCheckedFormat: 'бүтүндөй {total} сан',
|
||||
hasCheckedFormat: 'Тандалган {checked}/{total} сан'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/km.js
Normal file
120
src/locale/lang/km.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'យល់ព្រម',
|
||||
clear: 'លុប'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'ឥឡូវនេះ',
|
||||
today: 'ថ្ងៃនេះ',
|
||||
cancel: 'បោះបង់',
|
||||
clear: 'លុប',
|
||||
confirm: 'យល់ព្រម',
|
||||
selectDate: 'ជ្រើសរើសថ្ងៃ',
|
||||
selectTime: 'ជ្រើសរើសម៉ោង',
|
||||
startDate: 'ថ្ងៃចាប់ផ្តើម',
|
||||
startTime: 'ម៉ោងចាប់ផ្តើម',
|
||||
endDate: 'ថ្ងៃបញ្ចប់',
|
||||
endTime: 'ម៉ោងបញ្ចប់',
|
||||
prevYear: 'ឆ្នាំមុន',
|
||||
nextYear: 'ឆ្នាំក្រោយ',
|
||||
prevMonth: 'ខែមុន',
|
||||
nextMonth: 'ខែក្រោយ',
|
||||
year: 'ឆ្នាំ',
|
||||
month1: 'មករា',
|
||||
month2: 'កុម្ភៈ',
|
||||
month3: 'មីនា',
|
||||
month4: 'មេសា',
|
||||
month5: 'ឧសភា',
|
||||
month6: 'មិថុនា',
|
||||
month7: 'កក្កដា',
|
||||
month8: 'សីហា',
|
||||
month9: 'កញ្ញា',
|
||||
month10: 'តុលា',
|
||||
month11: 'វិច្ឆកា',
|
||||
month12: 'ធ្នូ',
|
||||
week: 'សប្តាហ៍',
|
||||
weeks: {
|
||||
sun: 'អាទិត្យ',
|
||||
mon: 'ច័ន្ទ',
|
||||
tue: 'អង្គារ',
|
||||
wed: 'ពុធ',
|
||||
thu: 'ព្រ.ហ',
|
||||
fri: 'សុក្រ',
|
||||
sat: 'សៅរ៏'
|
||||
},
|
||||
months: {
|
||||
jan: 'មករា',
|
||||
feb: 'កុម្ភៈ',
|
||||
mar: 'មីនា',
|
||||
apr: 'មេសា',
|
||||
may: 'ឧសភា',
|
||||
jun: 'មិថុនា',
|
||||
jul: 'កក្កដា',
|
||||
aug: 'សីហា',
|
||||
sep: 'កញ្ញា',
|
||||
oct: 'តុលា',
|
||||
nov: 'វិច្ឆកា',
|
||||
dec: 'ធ្នូ'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'កំពុងផ្ទុក',
|
||||
noMatch: 'គ្មានទិន្ន័យដូច',
|
||||
noData: 'គ្មានទិន្ន័យ',
|
||||
placeholder: 'ជ្រើសរើស'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'គ្មានទិន្ន័យដូច',
|
||||
loading: 'កំពុងផ្ទុក',
|
||||
placeholder: 'ជ្រើសរើស',
|
||||
noData: 'គ្មានទិន្ន័យ'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'ទៅកាន់',
|
||||
pagesize: '/ទំព័រ',
|
||||
total: 'សរុប {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'សារ',
|
||||
confirm: 'យល់ព្រម',
|
||||
cancel: 'បោះបង់',
|
||||
error: 'ការបញ្ចូលមិនអនុញ្ញាត'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'ចុចលុបដើម្បីដកចេញ',
|
||||
delete: 'លុប',
|
||||
preview: 'មើល',
|
||||
continue: 'បន្ត'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'គ្មានទិន្ន័យ',
|
||||
confirmFilter: 'យល់ព្រម',
|
||||
resetFilter: 'កំណត់ឡើងវិញ',
|
||||
clearFilter: 'ទាំងអស់',
|
||||
sumText: 'បូក'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'គ្មានទិន្ន័យ'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'គ្មានទិន្ន័យដូច',
|
||||
noData: 'គ្មានទិន្ន័យ',
|
||||
titles: ['បញ្ជី ១', 'បញ្ជី ២'],
|
||||
filterPlaceholder: 'បញ្ចូលពាក្យ',
|
||||
noCheckedFormat: '{total} ធាតុ',
|
||||
hasCheckedFormat: '{checked}/{total} បានគូសធីក'
|
||||
},
|
||||
image: {
|
||||
error: 'បរាជ័យ'
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back'
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'ព្រម',
|
||||
cancelButtonText: 'មិនព្រម'
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/ko.js
Normal file
120
src/locale/lang/ko.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: '확인',
|
||||
clear: '초기화'
|
||||
},
|
||||
datepicker: {
|
||||
now: '지금',
|
||||
today: '오늘',
|
||||
cancel: '취소',
|
||||
clear: '초기화',
|
||||
confirm: '확인',
|
||||
selectDate: '날짜 선택',
|
||||
selectTime: '시간 선택',
|
||||
startDate: '시작 날짜',
|
||||
startTime: '시작 시간',
|
||||
endDate: '종료 날짜',
|
||||
endTime: '종료 시간',
|
||||
prevYear: '지난해',
|
||||
nextYear: '다음해',
|
||||
prevMonth: '지난달',
|
||||
nextMonth: '다음달',
|
||||
year: '년',
|
||||
month1: '1월',
|
||||
month2: '2월',
|
||||
month3: '3월',
|
||||
month4: '4월',
|
||||
month5: '5월',
|
||||
month6: '6월',
|
||||
month7: '7월',
|
||||
month8: '8월',
|
||||
month9: '9월',
|
||||
month10: '10월',
|
||||
month11: '11월',
|
||||
month12: '12월',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: '일',
|
||||
mon: '월',
|
||||
tue: '화',
|
||||
wed: '수',
|
||||
thu: '목',
|
||||
fri: '금',
|
||||
sat: '토'
|
||||
},
|
||||
months: {
|
||||
jan: '1월',
|
||||
feb: '2월',
|
||||
mar: '3월',
|
||||
apr: '4월',
|
||||
may: '5월',
|
||||
jun: '6월',
|
||||
jul: '7월',
|
||||
aug: '8월',
|
||||
sep: '9월',
|
||||
oct: '10월',
|
||||
nov: '11월',
|
||||
dec: '12월'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: '불러오는 중',
|
||||
noMatch: '맞는 데이터가 없습니다',
|
||||
noData: '데이터 없음',
|
||||
placeholder: '선택'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: '맞는 데이터가 없습니다',
|
||||
loading: '불러오는 중',
|
||||
placeholder: '선택',
|
||||
noData: '데이터 없음'
|
||||
},
|
||||
pagination: {
|
||||
goto: '이동',
|
||||
pagesize: '/page',
|
||||
total: '총 {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: '메시지',
|
||||
confirm: '확인',
|
||||
cancel: '취소',
|
||||
error: '올바르지 않은 입력'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: '클릭시 삭제됩니다',
|
||||
delete: '삭제',
|
||||
preview: '미리보기',
|
||||
continue: '계속하기'
|
||||
},
|
||||
table: {
|
||||
emptyText: '데이터 없음',
|
||||
confirmFilter: '확인',
|
||||
resetFilter: '초기화',
|
||||
clearFilter: '전체',
|
||||
sumText: '합'
|
||||
},
|
||||
tree: {
|
||||
emptyText: '데이터 없음'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: '맞는 데이터가 없습니다',
|
||||
noData: '데이터 없음',
|
||||
titles: ['리스트 1', '리스트 2'],
|
||||
filterPlaceholder: ' 입력하세요',
|
||||
noCheckedFormat: '{total} 항목',
|
||||
hasCheckedFormat: '{checked}/{total} 선택됨'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/ku.js
Normal file
120
src/locale/lang/ku.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Temam',
|
||||
clear: 'Paqij bike'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Niha',
|
||||
today: 'Îro',
|
||||
cancel: 'Betal bike',
|
||||
clear: 'Paqij bike',
|
||||
confirm: 'Temam',
|
||||
selectDate: 'Dîrokê bibijêre',
|
||||
selectTime: 'Demê bibijêre',
|
||||
startDate: 'Dîroka Destpêkê',
|
||||
startTime: 'Dema Destpêkê',
|
||||
endDate: 'Dîroka Dawî',
|
||||
endTime: 'Dema Dawî',
|
||||
prevYear: 'Sala Pêş',
|
||||
nextYear: 'Sala Paş',
|
||||
prevMonth: 'Meha Pêş',
|
||||
nextMonth: 'Meha Paş',
|
||||
year: 'Sal',
|
||||
month1: 'Rêbendan',
|
||||
month2: 'Reşemeh',
|
||||
month3: 'Adar',
|
||||
month4: 'Avrêl',
|
||||
month5: 'Gulan',
|
||||
month6: 'Pûşber',
|
||||
month7: 'Tîrmeh',
|
||||
month8: 'Gilavêj',
|
||||
month9: 'Rezber',
|
||||
month10: 'Kewçêr',
|
||||
month11: 'Sarmawaz',
|
||||
month12: 'Berfanbar',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'Yek',
|
||||
mon: 'Duş',
|
||||
tue: 'Sêş',
|
||||
wed: 'Çar',
|
||||
thu: 'Pên',
|
||||
fri: 'În',
|
||||
sat: 'Şem'
|
||||
},
|
||||
months: {
|
||||
jan: 'Rêb',
|
||||
feb: 'Reş',
|
||||
mar: 'Ada',
|
||||
apr: 'Avr',
|
||||
may: 'Gul',
|
||||
jun: 'Pûş',
|
||||
jul: 'Tîr',
|
||||
aug: 'Gil',
|
||||
sep: 'Rez',
|
||||
oct: 'Kew',
|
||||
nov: 'Sar',
|
||||
dec: 'Ber'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Bardibe',
|
||||
noMatch: 'Li hembere ve agahî tune',
|
||||
noData: 'Agahî tune',
|
||||
placeholder: 'Bibijêre'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Li hembere ve agahî tune',
|
||||
loading: 'Bardibe',
|
||||
placeholder: 'Bibijêre',
|
||||
noData: 'Agahî tune'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Biçe',
|
||||
pagesize: '/rupel',
|
||||
total: 'Tevahî {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Peyam',
|
||||
confirm: 'Temam',
|
||||
cancel: 'Betal bike',
|
||||
error: 'Beyana çewt'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'ji bo rake pêl "delete" bike',
|
||||
delete: 'Rake',
|
||||
preview: 'Pêşdîtin',
|
||||
continue: 'Berdewam'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Agahî tune',
|
||||
confirmFilter: 'Piştrast bike',
|
||||
resetFilter: 'Jê bibe',
|
||||
clearFilter: 'Hemû',
|
||||
sumText: 'Kom'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Agahî tune'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Li hembere ve agahî tune',
|
||||
noData: 'Agahî tune',
|
||||
titles: ['Lîste 1', 'Lîste 2'],
|
||||
filterPlaceholder: 'Binivîse',
|
||||
noCheckedFormat: '{total} lib',
|
||||
hasCheckedFormat: '{checked}/{total} bijartin'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/kz.js
Normal file
120
src/locale/lang/kz.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Қабылдау',
|
||||
clear: 'Тазалау'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Қазір',
|
||||
today: 'Бүгін',
|
||||
cancel: 'Болдырмау',
|
||||
clear: 'Тазалау',
|
||||
confirm: 'Қабылдау',
|
||||
selectDate: 'Күнді таңдаңыз',
|
||||
selectTime: 'Сағатты таңдаңыз',
|
||||
startDate: 'Басталу күні',
|
||||
startTime: 'Басталу сағаты',
|
||||
endDate: 'Аяқталу күні',
|
||||
endTime: 'Аяқталу сағаты',
|
||||
prevYear: 'Алдыңғы жыл',
|
||||
nextYear: 'Келесі жыл',
|
||||
prevMonth: 'Алдыңғы ай',
|
||||
nextMonth: 'Келесі ай',
|
||||
year: 'Жыл',
|
||||
month1: 'Қаңтар',
|
||||
month2: 'Ақпан',
|
||||
month3: 'Наурыз',
|
||||
month4: 'Сәуір',
|
||||
month5: 'Мамыр',
|
||||
month6: 'Маусым',
|
||||
month7: 'Шілде',
|
||||
month8: 'Тамыз',
|
||||
month9: 'Қыркүйек',
|
||||
month10: 'Қазан',
|
||||
month11: 'Қараша',
|
||||
month12: 'Желтоқсан',
|
||||
week: 'Апта',
|
||||
weeks: {
|
||||
sun: 'Жек',
|
||||
mon: 'Дүй',
|
||||
tue: 'Сей',
|
||||
wed: 'Сәр',
|
||||
thu: 'Бей',
|
||||
fri: 'Жұм',
|
||||
sat: 'Сен'
|
||||
},
|
||||
months: {
|
||||
jan: 'Қаң',
|
||||
feb: 'Ақп',
|
||||
mar: 'Нау',
|
||||
apr: 'Сәу',
|
||||
may: 'Мам',
|
||||
jun: 'Мау',
|
||||
jul: 'Шіл',
|
||||
aug: 'Там',
|
||||
sep: 'Қыр',
|
||||
oct: 'Қаз',
|
||||
nov: 'Қар',
|
||||
dec: 'Жел'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Жүктелуде',
|
||||
noMatch: 'Сәйкес деректер жоқ',
|
||||
noData: 'Деректер жоқ',
|
||||
placeholder: 'Таңдаңыз'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Сәйкес деректер жоқ',
|
||||
loading: 'Жүктелуде',
|
||||
placeholder: 'Таңдаңыз',
|
||||
noData: 'Деректер жоқ'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Бару',
|
||||
pagesize: '/page',
|
||||
total: 'Барлығы {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Хабар',
|
||||
confirm: 'Қабылдау',
|
||||
cancel: 'Болдырмау',
|
||||
error: 'Жарамсыз енгізулер'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Өшіруді басып өшіріңіз',
|
||||
delete: 'Өшіру',
|
||||
preview: 'Алдын ала қарау',
|
||||
continue: 'Жалғастыру'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Деректер жоқ',
|
||||
confirmFilter: 'Қабылдау',
|
||||
resetFilter: 'Қалпына келтіру',
|
||||
clearFilter: 'Барлығы',
|
||||
sumText: 'Сомасы'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Деректер жоқ'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Сәйкес деректер жоқ',
|
||||
noData: 'Деректер жоқ',
|
||||
titles: ['List 1', 'List 2'],
|
||||
filterPlaceholder: 'Кілт сөзді енгізіңіз',
|
||||
noCheckedFormat: '{total} элэмэнт',
|
||||
hasCheckedFormat: '{checked}/{total} құсбелгісі қойылды'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/lt.js
Normal file
120
src/locale/lang/lt.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Valyti'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Dabar',
|
||||
today: 'Šiandien',
|
||||
cancel: 'Atšaukti',
|
||||
clear: 'Valyti',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Pasirink datą',
|
||||
selectTime: 'Pasirink laiką',
|
||||
startDate: 'Data nuo',
|
||||
startTime: 'Laikas nuo',
|
||||
endDate: 'Data iki',
|
||||
endTime: 'Laikas iki',
|
||||
prevYear: 'Metai atgal',
|
||||
nextYear: 'Metai į priekį',
|
||||
prevMonth: 'Mėn. atgal',
|
||||
nextMonth: 'Mėn. į priekį',
|
||||
year: '',
|
||||
month1: 'Sausis',
|
||||
month2: 'Vasaris',
|
||||
month3: 'Kovas',
|
||||
month4: 'Balandis',
|
||||
month5: 'Gegužė',
|
||||
month6: 'Birželis',
|
||||
month7: 'Liepa',
|
||||
month8: 'Rugpjūtis',
|
||||
month9: 'Rugsėjis',
|
||||
month10: 'Spalis',
|
||||
month11: 'Lapkritis',
|
||||
month12: 'Gruodis',
|
||||
// week: 'savaitė',
|
||||
weeks: {
|
||||
sun: 'S.',
|
||||
mon: 'Pr.',
|
||||
tue: 'A.',
|
||||
wed: 'T.',
|
||||
thu: 'K.',
|
||||
fri: 'Pn.',
|
||||
sat: 'Š.'
|
||||
},
|
||||
months: {
|
||||
jan: 'Sau',
|
||||
feb: 'Vas',
|
||||
mar: 'Kov',
|
||||
apr: 'Bal',
|
||||
may: 'Geg',
|
||||
jun: 'Bir',
|
||||
jul: 'Lie',
|
||||
aug: 'Rugp',
|
||||
sep: 'Rugs',
|
||||
oct: 'Spa',
|
||||
nov: 'Lap',
|
||||
dec: 'Gruo'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Kraunasi',
|
||||
noMatch: 'Duomenų nerasta',
|
||||
noData: 'Nėra duomenų',
|
||||
placeholder: 'Pasirink'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Duomenų nerasta',
|
||||
loading: 'Kraunasi',
|
||||
placeholder: 'Pasirink',
|
||||
noData: 'Nėra duomenų'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Eiti į',
|
||||
pagesize: '/p',
|
||||
total: 'Viso {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Žinutė',
|
||||
confirm: 'OK',
|
||||
cancel: 'Atšaukti',
|
||||
error: 'Klaida įvestuose duomenyse'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'spauskite "Trinti" norėdami pašalinti',
|
||||
delete: 'Trinti',
|
||||
preview: 'Peržiūrėti',
|
||||
continue: 'Toliau'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Duomenų nerasta',
|
||||
confirmFilter: 'Patvirtinti',
|
||||
resetFilter: 'Atstatyti',
|
||||
clearFilter: 'Išvalyti',
|
||||
sumText: 'Suma'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Nėra duomenų'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Duomenų nerasta',
|
||||
noData: 'Nėra duomenų',
|
||||
titles: ['Sąrašas 1', 'Sąrašas 2'],
|
||||
filterPlaceholder: 'Įvesk raktažodį',
|
||||
noCheckedFormat: 'Viso: {total}',
|
||||
hasCheckedFormat: 'Pažymėta {checked} iš {total}'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/lv.js
Normal file
120
src/locale/lang/lv.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Labi',
|
||||
clear: 'Notīrīt'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Tagad',
|
||||
today: 'Šodien',
|
||||
cancel: 'Atcelt',
|
||||
clear: 'Notīrīt',
|
||||
confirm: 'Labi',
|
||||
selectDate: 'Izvēlēties datumu',
|
||||
selectTime: 'Izvēlēties laiku',
|
||||
startDate: 'Sākuma datums',
|
||||
startTime: 'Sākuma laiks',
|
||||
endDate: 'Beigu datums',
|
||||
endTime: 'Beigu laiks',
|
||||
prevYear: 'Iepriekšējais gads',
|
||||
nextYear: 'Nākamais gads',
|
||||
prevMonth: 'Iepriekšējais mēnesis',
|
||||
nextMonth: 'Nākamais mēnesis',
|
||||
year: '',
|
||||
month1: 'Janvāris',
|
||||
month2: 'Februāris',
|
||||
month3: 'Marts',
|
||||
month4: 'Aprīlis',
|
||||
month5: 'Maijs',
|
||||
month6: 'Jūnijs',
|
||||
month7: 'Jūlijs',
|
||||
month8: 'Augusts',
|
||||
month9: 'Septembris',
|
||||
month10: 'Oktobris',
|
||||
month11: 'Novembris',
|
||||
month12: 'Decembris',
|
||||
// week: 'nedēļa',
|
||||
weeks: {
|
||||
sun: 'Sv',
|
||||
mon: 'Pr',
|
||||
tue: 'Ot',
|
||||
wed: 'Tr',
|
||||
thu: 'Ce',
|
||||
fri: 'Pk',
|
||||
sat: 'Se'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Feb',
|
||||
mar: 'Mar',
|
||||
apr: 'Apr',
|
||||
may: 'Mai',
|
||||
jun: 'Jūn',
|
||||
jul: 'Jūl',
|
||||
aug: 'Aug',
|
||||
sep: 'Sep',
|
||||
oct: 'Okt',
|
||||
nov: 'Nov',
|
||||
dec: 'Dec'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Ielādē',
|
||||
noMatch: 'Nav atbilstošu datu',
|
||||
noData: 'Nav datu',
|
||||
placeholder: 'Izvēlēties'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Nav atbilstošu datu',
|
||||
loading: 'Ielādē',
|
||||
placeholder: 'Izvēlēties',
|
||||
noData: 'Nav datu'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Iet uz',
|
||||
pagesize: '/lapa',
|
||||
total: 'Kopā {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Paziņojums',
|
||||
confirm: 'Labi',
|
||||
cancel: 'Atcelt',
|
||||
error: 'Nederīga ievade'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Nospiediet dzēst lai izņemtu',
|
||||
delete: 'Dzēst',
|
||||
preview: 'Priekšskatīt',
|
||||
continue: 'Turpināt'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Nav datu',
|
||||
confirmFilter: 'Apstiprināt',
|
||||
resetFilter: 'Atiestatīt',
|
||||
clearFilter: 'Visi',
|
||||
sumText: 'Summa'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Nav datu'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Nav atbilstošu datu',
|
||||
noData: 'Nav datu',
|
||||
titles: ['Saraksts 1', 'Saraksts 2'],
|
||||
filterPlaceholder: 'Ievadīt atslēgvārdu',
|
||||
noCheckedFormat: '{total} vienības',
|
||||
hasCheckedFormat: '{checked}/{total} atzīmēti'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/mn.js
Normal file
120
src/locale/lang/mn.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Тийм',
|
||||
clear: 'Цэвэрлэх'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Одоо',
|
||||
today: 'Өнөөдөр',
|
||||
cancel: 'Болих',
|
||||
clear: 'Цэвэрлэх',
|
||||
confirm: 'Тийм',
|
||||
selectDate: 'Огноог сонго',
|
||||
selectTime: 'Цагийг сонго',
|
||||
startDate: 'Эхлэх огноо',
|
||||
startTime: 'Эхлэх цаг',
|
||||
endDate: 'Дуусах огноо',
|
||||
endTime: 'Дуусах цаг',
|
||||
prevYear: 'Өмнөх жил',
|
||||
nextYear: 'Дараа жил',
|
||||
prevMonth: 'Өмнөх сар',
|
||||
nextMonth: 'Дараа сар',
|
||||
year: 'он',
|
||||
month1: '1 сар',
|
||||
month2: '2 сар',
|
||||
month3: '3 сар',
|
||||
month4: '4 сар',
|
||||
month5: '5 сар',
|
||||
month6: '6 сар',
|
||||
month7: '7 сар',
|
||||
month8: '8 сар',
|
||||
month9: '9 сар',
|
||||
month10: '10 сар',
|
||||
month11: '11 сар',
|
||||
month12: '12 сар',
|
||||
week: 'Долоо хоног',
|
||||
weeks: {
|
||||
sun: 'Ням',
|
||||
mon: 'Дав',
|
||||
tue: 'Мяг',
|
||||
wed: 'Лха',
|
||||
thu: 'Пүр',
|
||||
fri: 'Баа',
|
||||
sat: 'Бям'
|
||||
},
|
||||
months: {
|
||||
jan: '1 сар',
|
||||
feb: '2 сар',
|
||||
mar: '3 сар',
|
||||
apr: '4 сар',
|
||||
may: '5 сар',
|
||||
jun: '6 сар',
|
||||
jul: '7 сар',
|
||||
aug: '8 сар',
|
||||
sep: '9 сар',
|
||||
oct: '10 сар',
|
||||
nov: '11 сар',
|
||||
dec: '12 сар'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Ачаалж байна',
|
||||
noMatch: 'Тохирох өгөгдөл байхгүй',
|
||||
noData: 'Өгөгдөл байхгүй',
|
||||
placeholder: 'Сонгох'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Тохирох өгөгдөл байхгүй',
|
||||
loading: 'Ачаалж байна',
|
||||
placeholder: 'Сонгох',
|
||||
noData: 'Өгөгдөл байхгүй'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Очих',
|
||||
pagesize: '/хуудас',
|
||||
total: 'Нийт {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Зурвас',
|
||||
confirm: 'Тийм',
|
||||
cancel: 'Болих',
|
||||
error: 'Буруу утга'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Устгахын дарж арилга',
|
||||
delete: 'Устгах',
|
||||
preview: 'Өмнөх',
|
||||
continue: 'Үргэлжлүүлэх'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Өгөгдөл байхгүй',
|
||||
confirmFilter: 'Зөвшөөрөх',
|
||||
resetFilter: 'Цэвэрлэх',
|
||||
clearFilter: 'Бүгд',
|
||||
sumText: 'Нийт'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Өгөгдөл байхгүй'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Тохирох өгөгдөл байхгүй',
|
||||
noData: 'Өгөгдөл байхгүй',
|
||||
titles: ['Жагсаалт 1', 'Жагсаалт 2'],
|
||||
filterPlaceholder: 'Утга оруул',
|
||||
noCheckedFormat: '{total} өгөгдөл',
|
||||
hasCheckedFormat: '{checked}/{total} сонгосон'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
119
src/locale/lang/nb-NO.js
Normal file
119
src/locale/lang/nb-NO.js
Normal file
@@ -0,0 +1,119 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Tøm'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Nå',
|
||||
today: 'I dag',
|
||||
cancel: 'Avbryt',
|
||||
clear: 'Tøm',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Velg dato',
|
||||
selectTime: 'Velg tidspunkt',
|
||||
startDate: 'Start Dato',
|
||||
startTime: 'Start Tidspunkt',
|
||||
endDate: 'Sluttdato',
|
||||
endTime: 'Sluttidspunkt',
|
||||
prevYear: 'Previous Year', // to be translated
|
||||
nextYear: 'Next Year', // to be translated
|
||||
prevMonth: 'Previous Month', // to be translated
|
||||
nextMonth: 'Next Month', // to be translated
|
||||
year: '',
|
||||
month1: 'Januar',
|
||||
month2: 'Februar',
|
||||
month3: 'Mars',
|
||||
month4: 'April',
|
||||
month5: 'Mai',
|
||||
month6: 'Juni',
|
||||
month7: 'Juli',
|
||||
month8: 'August',
|
||||
month9: 'September',
|
||||
month10: 'Oktober',
|
||||
month11: 'November',
|
||||
month12: 'Desember',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'Søn',
|
||||
mon: 'Man',
|
||||
tue: 'Tir',
|
||||
wed: 'Ons',
|
||||
thu: 'Tor',
|
||||
fri: 'Fre',
|
||||
sat: 'Lør'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Feb',
|
||||
mar: 'Mar',
|
||||
apr: 'Apr',
|
||||
may: 'Mai',
|
||||
jun: 'Jun',
|
||||
jul: 'Jul',
|
||||
aug: 'Aug',
|
||||
sep: 'Sep',
|
||||
oct: 'Okt',
|
||||
nov: 'Nov',
|
||||
dec: 'Des'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Laster',
|
||||
noMatch: 'Ingen samsvarende data',
|
||||
noData: 'Ingen data',
|
||||
placeholder: 'Velg'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Ingen samsvarende data',
|
||||
loading: 'Laster',
|
||||
placeholder: 'Velg',
|
||||
noData: 'Ingen data'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Gå til',
|
||||
pagesize: '/side',
|
||||
total: 'Total {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
confirm: 'OK',
|
||||
cancel: 'Avbryt',
|
||||
error: 'Ugyldig input'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'press delete to remove', // to be translated
|
||||
delete: 'Slett',
|
||||
preview: 'Forhåndsvisning',
|
||||
continue: 'Fortsett'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Ingen Data',
|
||||
confirmFilter: 'Bekreft',
|
||||
resetFilter: 'Tilbakestill',
|
||||
clearFilter: 'Alle',
|
||||
sumText: 'Sum' // to be translated
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Ingen Data'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Ingen samsvarende data',
|
||||
noData: 'Ingen data',
|
||||
titles: ['List 1', 'List 2'], // to be translated
|
||||
filterPlaceholder: 'Enter keyword', // to be translated
|
||||
noCheckedFormat: '{total} items', // to be translated
|
||||
hasCheckedFormat: '{checked}/{total} checked' // to be translated
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/nl.js
Normal file
120
src/locale/lang/nl.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Bevestig',
|
||||
clear: 'Wissen'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Nu',
|
||||
today: 'Vandaag',
|
||||
cancel: 'Annuleren',
|
||||
clear: 'Legen',
|
||||
confirm: 'Bevestig',
|
||||
selectDate: 'Selecteer datum',
|
||||
selectTime: 'Selecteer tijd',
|
||||
startDate: 'Startdatum',
|
||||
startTime: 'Starttijd',
|
||||
endDate: 'Einddatum',
|
||||
endTime: 'Eindtijd',
|
||||
prevYear: 'Vorig jaar',
|
||||
nextYear: 'Volgend jaar',
|
||||
prevMonth: 'Vorige maand',
|
||||
nextMonth: 'Volgende maand',
|
||||
year: '',
|
||||
month1: 'januari',
|
||||
month2: 'februari',
|
||||
month3: 'maart',
|
||||
month4: 'april',
|
||||
month5: 'mei',
|
||||
month6: 'juni',
|
||||
month7: 'juli',
|
||||
month8: 'augustus',
|
||||
month9: 'september',
|
||||
month10: 'oktober',
|
||||
month11: 'november',
|
||||
month12: 'december',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'Zo',
|
||||
mon: 'Ma',
|
||||
tue: 'Di',
|
||||
wed: 'Wo',
|
||||
thu: 'Do',
|
||||
fri: 'Vr',
|
||||
sat: 'Za'
|
||||
},
|
||||
months: {
|
||||
jan: 'jan',
|
||||
feb: 'feb',
|
||||
mar: 'maa',
|
||||
apr: 'apr',
|
||||
may: 'mei',
|
||||
jun: 'jun',
|
||||
jul: 'jul',
|
||||
aug: 'aug',
|
||||
sep: 'sep',
|
||||
oct: 'okt',
|
||||
nov: 'nov',
|
||||
dec: 'dec'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Laden',
|
||||
noMatch: 'Geen overeenkomende resultaten',
|
||||
noData: 'Geen data',
|
||||
placeholder: 'Selecteer'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Geen overeenkomende resultaten',
|
||||
loading: 'Laden',
|
||||
placeholder: 'Selecteer',
|
||||
noData: 'Geen data'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Ga naar',
|
||||
pagesize: '/pagina',
|
||||
total: 'Totaal {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Bericht',
|
||||
confirm: 'Bevestig',
|
||||
cancel: 'Annuleren',
|
||||
error: 'Ongeldige invoer'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Kies verwijder om te wissen',
|
||||
delete: 'Verwijder',
|
||||
preview: 'Voorbeeld',
|
||||
continue: 'Doorgaan'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Geen data',
|
||||
confirmFilter: 'Bevestigen',
|
||||
resetFilter: 'Reset',
|
||||
clearFilter: 'Alles',
|
||||
sumText: 'Som'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Geen data'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Geen overeenkomende resultaten',
|
||||
noData: 'Geen data',
|
||||
titles: ['Lijst 1', 'Lijst 2'],
|
||||
filterPlaceholder: 'Geef zoekwoerd',
|
||||
noCheckedFormat: '{total} items',
|
||||
hasCheckedFormat: '{checked}/{total} geselecteerd'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/pl.js
Normal file
120
src/locale/lang/pl.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Wyczyść'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Teraz',
|
||||
today: 'Dzisiaj',
|
||||
cancel: 'Anuluj',
|
||||
clear: 'Wyczyść',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Wybierz datę',
|
||||
selectTime: 'Wybierz godzinę',
|
||||
startDate: 'Data początkowa',
|
||||
startTime: 'Godzina początkowa',
|
||||
endDate: 'Data końcowa',
|
||||
endTime: 'Czas końcowa',
|
||||
prevYear: 'Poprzedni rok',
|
||||
nextYear: 'Następny rok',
|
||||
prevMonth: 'Poprzedni miesiąc',
|
||||
nextMonth: 'Następny miesiąc',
|
||||
year: 'rok',
|
||||
month1: 'styczeń',
|
||||
month2: 'luty',
|
||||
month3: 'marzec',
|
||||
month4: 'kwiecień',
|
||||
month5: 'maj',
|
||||
month6: 'czerwiec',
|
||||
month7: 'lipiec',
|
||||
month8: 'sierpień',
|
||||
month9: 'wrzesień',
|
||||
month10: 'październik',
|
||||
month11: 'listopad',
|
||||
month12: 'grudzień',
|
||||
week: 'tydzień',
|
||||
weeks: {
|
||||
sun: 'niedz.',
|
||||
mon: 'pon.',
|
||||
tue: 'wt.',
|
||||
wed: 'śr.',
|
||||
thu: 'czw.',
|
||||
fri: 'pt.',
|
||||
sat: 'sob.'
|
||||
},
|
||||
months: {
|
||||
jan: 'STY',
|
||||
feb: 'LUT',
|
||||
mar: 'MAR',
|
||||
apr: 'KWI',
|
||||
may: 'MAJ',
|
||||
jun: 'CZE',
|
||||
jul: 'LIP',
|
||||
aug: 'SIE',
|
||||
sep: 'WRZ',
|
||||
oct: 'PAŹ',
|
||||
nov: 'LIS',
|
||||
dec: 'GRU'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Ładowanie',
|
||||
noMatch: 'Brak dopasowań',
|
||||
noData: 'Brak danych',
|
||||
placeholder: 'Wybierz'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Brak dopasowań',
|
||||
loading: 'Ładowanie',
|
||||
placeholder: 'Wybierz',
|
||||
noData: 'Brak danych'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Idź do',
|
||||
pagesize: '/strona',
|
||||
total: 'Wszystkich {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Wiadomość',
|
||||
confirm: 'OK',
|
||||
cancel: 'Anuluj',
|
||||
error: 'Wiadomość zawiera niedozwolone znaki'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'kliknij kasuj aby usunąć',
|
||||
delete: 'Kasuj',
|
||||
preview: 'Podgląd',
|
||||
continue: 'Kontynuuj'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Brak danych',
|
||||
confirmFilter: 'Potwierdź',
|
||||
resetFilter: 'Resetuj',
|
||||
clearFilter: 'Wszystko',
|
||||
sumText: 'Razem'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Brak danych'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Brak dopasowań',
|
||||
noData: 'Brak danych',
|
||||
titles: ['Lista 1', 'Lista 2'],
|
||||
filterPlaceholder: 'Wpisz szukaną frazę',
|
||||
noCheckedFormat: 'razem: {total}',
|
||||
hasCheckedFormat: 'wybranych: {checked}/{total}'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/pt-br.js
Normal file
120
src/locale/lang/pt-br.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Confirmar',
|
||||
clear: 'Limpar'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Agora',
|
||||
today: 'Hoje',
|
||||
cancel: 'Cancelar',
|
||||
clear: 'Limpar',
|
||||
confirm: 'Confirmar',
|
||||
selectDate: 'Selecione a data',
|
||||
selectTime: 'Selecione a hora',
|
||||
startDate: 'Data inicial',
|
||||
startTime: 'Hora inicial',
|
||||
endDate: 'Data final',
|
||||
endTime: 'Hora final',
|
||||
prevYear: 'Ano anterior',
|
||||
nextYear: 'Próximo ano',
|
||||
prevMonth: 'Mês anterior',
|
||||
nextMonth: 'Próximo mês',
|
||||
year: '',
|
||||
month1: 'Janeiro',
|
||||
month2: 'Fevereiro',
|
||||
month3: 'Março',
|
||||
month4: 'Abril',
|
||||
month5: 'Maio',
|
||||
month6: 'Junho',
|
||||
month7: 'Julho',
|
||||
month8: 'Agosto',
|
||||
month9: 'Setembro',
|
||||
month10: 'Outubro',
|
||||
month11: 'Novembro',
|
||||
month12: 'Dezembro',
|
||||
// week: 'semana',
|
||||
weeks: {
|
||||
sun: 'Dom',
|
||||
mon: 'Seg',
|
||||
tue: 'Ter',
|
||||
wed: 'Qua',
|
||||
thu: 'Qui',
|
||||
fri: 'Sex',
|
||||
sat: 'Sab'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Fev',
|
||||
mar: 'Mar',
|
||||
apr: 'Abr',
|
||||
may: 'Mai',
|
||||
jun: 'Jun',
|
||||
jul: 'Jul',
|
||||
aug: 'Ago',
|
||||
sep: 'Set',
|
||||
oct: 'Out',
|
||||
nov: 'Nov',
|
||||
dec: 'Dez'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Carregando',
|
||||
noMatch: 'Sem resultados',
|
||||
noData: 'Sem dados',
|
||||
placeholder: 'Selecione'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Sem resultados',
|
||||
loading: 'Carregando',
|
||||
placeholder: 'Selecione',
|
||||
noData: 'Sem dados'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Ir para',
|
||||
pagesize: '/página',
|
||||
total: 'Total {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Mensagem',
|
||||
confirm: 'Confirmar',
|
||||
cancel: 'Cancelar',
|
||||
error: 'Erro!'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'aperte delete para apagar',
|
||||
delete: 'Apagar',
|
||||
preview: 'Pré-visualizar',
|
||||
continue: 'Continuar'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Sem dados',
|
||||
confirmFilter: 'Confirmar',
|
||||
resetFilter: 'Limpar',
|
||||
clearFilter: 'Todos',
|
||||
sumText: 'Total'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Sem dados'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Sem resultados',
|
||||
noData: 'Sem dados',
|
||||
titles: ['Lista 1', 'Lista 2'],
|
||||
filterPlaceholder: 'Digite uma palavra-chave',
|
||||
noCheckedFormat: '{total} itens',
|
||||
hasCheckedFormat: '{checked}/{total} selecionados'
|
||||
},
|
||||
image: {
|
||||
error: 'Erro ao carregar imagem'
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Voltar'
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Sim',
|
||||
cancelButtonText: 'Não'
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/pt.js
Normal file
120
src/locale/lang/pt.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Confirmar',
|
||||
clear: 'Limpar'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Agora',
|
||||
today: 'Hoje',
|
||||
cancel: 'Cancelar',
|
||||
clear: 'Limpar',
|
||||
confirm: 'Confirmar',
|
||||
selectDate: 'Selecione a data',
|
||||
selectTime: 'Selecione a hora',
|
||||
startDate: 'Data de inicio',
|
||||
startTime: 'Hora de inicio',
|
||||
endDate: 'Data de fim',
|
||||
endTime: 'Hora de fim',
|
||||
prevYear: 'Previous Year', // to be translated
|
||||
nextYear: 'Next Year', // to be translated
|
||||
prevMonth: 'Previous Month', // to be translated
|
||||
nextMonth: 'Next Month', // to be translated
|
||||
year: '',
|
||||
month1: 'Janeiro',
|
||||
month2: 'Fevereiro',
|
||||
month3: 'Março',
|
||||
month4: 'Abril',
|
||||
month5: 'Maio',
|
||||
month6: 'Junho',
|
||||
month7: 'Julho',
|
||||
month8: 'Agosto',
|
||||
month9: 'Setembro',
|
||||
month10: 'Outubro',
|
||||
month11: 'Novembro',
|
||||
month12: 'Dezembro',
|
||||
// week: 'semana',
|
||||
weeks: {
|
||||
sun: 'Dom',
|
||||
mon: 'Seg',
|
||||
tue: 'Ter',
|
||||
wed: 'Qua',
|
||||
thu: 'Qui',
|
||||
fri: 'Sex',
|
||||
sat: 'Sab'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Fev',
|
||||
mar: 'Mar',
|
||||
apr: 'Abr',
|
||||
may: 'Mai',
|
||||
jun: 'Jun',
|
||||
jul: 'Jul',
|
||||
aug: 'Ago',
|
||||
sep: 'Set',
|
||||
oct: 'Out',
|
||||
nov: 'Nov',
|
||||
dec: 'Dez'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'A carregar',
|
||||
noMatch: 'Sem correspondência',
|
||||
noData: 'Sem dados',
|
||||
placeholder: 'Selecione'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Sem correspondência',
|
||||
loading: 'A carregar',
|
||||
placeholder: 'Selecione',
|
||||
noData: 'Sem dados'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Ir para',
|
||||
pagesize: '/pagina',
|
||||
total: 'Total {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Mensagem',
|
||||
confirm: 'Confirmar',
|
||||
cancel: 'Cancelar',
|
||||
error: 'Erro!'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'press delete to remove', // to be translated
|
||||
delete: 'Apagar',
|
||||
preview: 'Previsualizar',
|
||||
continue: 'Continuar'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Sem dados',
|
||||
confirmFilter: 'Confirmar',
|
||||
resetFilter: 'Limpar',
|
||||
clearFilter: 'Todos',
|
||||
sumText: 'Sum' // to be translated
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Sem dados'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Sem correspondência',
|
||||
noData: 'Sem dados',
|
||||
titles: ['List 1', 'List 2'], // to be translated
|
||||
filterPlaceholder: 'Enter keyword', // to be translated
|
||||
noCheckedFormat: '{total} items', // to be translated
|
||||
hasCheckedFormat: '{checked}/{total} checked' // to be translated
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/ro.js
Normal file
120
src/locale/lang/ro.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Șterge'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Acum',
|
||||
today: 'Azi',
|
||||
cancel: 'Anulează',
|
||||
clear: 'Șterge',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Selectează data',
|
||||
selectTime: 'Selectează ora',
|
||||
startDate: 'Data de început',
|
||||
startTime: 'Ora de început',
|
||||
endDate: 'Data de sfârșit',
|
||||
endTime: 'Ora de sfârșit',
|
||||
prevYear: 'Anul trecut',
|
||||
nextYear: 'Anul următor',
|
||||
prevMonth: 'Luna trecută',
|
||||
nextMonth: 'Luna următoare',
|
||||
year: '',
|
||||
month1: 'Ianuarie',
|
||||
month2: 'Februarie',
|
||||
month3: 'Martie',
|
||||
month4: 'Aprilie',
|
||||
month5: 'Mai',
|
||||
month6: 'Iunie',
|
||||
month7: 'Iulie',
|
||||
month8: 'August',
|
||||
month9: 'Septembrie',
|
||||
month10: 'Octombrie',
|
||||
month11: 'Noiembrie',
|
||||
month12: 'Decembrie',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'Du',
|
||||
mon: 'Lu',
|
||||
tue: 'Ma',
|
||||
wed: 'Mi',
|
||||
thu: 'Jo',
|
||||
fri: 'Vi',
|
||||
sat: 'Sâ'
|
||||
},
|
||||
months: {
|
||||
jan: 'Ian',
|
||||
feb: 'Feb',
|
||||
mar: 'Mar',
|
||||
apr: 'Apr',
|
||||
may: 'Mai',
|
||||
jun: 'Iun',
|
||||
jul: 'Iul',
|
||||
aug: 'Aug',
|
||||
sep: 'Sep',
|
||||
oct: 'Oct',
|
||||
nov: 'Noi',
|
||||
dec: 'Dec'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Se încarcă',
|
||||
noMatch: 'Nu există date potrivite',
|
||||
noData: 'Nu există date',
|
||||
placeholder: 'Selectează'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Nu există date potrivite',
|
||||
loading: 'Se încarcă',
|
||||
placeholder: 'Selectează',
|
||||
noData: 'Nu există date'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Go to',
|
||||
pagesize: '/pagina',
|
||||
total: 'Total {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Mesaj',
|
||||
confirm: 'OK',
|
||||
cancel: 'Anulează',
|
||||
error: 'Date introduse eronate'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'apăsați pe ștergeți pentru a elimina',
|
||||
delete: 'șterge',
|
||||
preview: 'previzualizare',
|
||||
continue: 'continuă'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Nu există date',
|
||||
confirmFilter: 'Confirmă',
|
||||
resetFilter: 'Resetează',
|
||||
clearFilter: 'Tot',
|
||||
sumText: 'Suma'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Nu există date'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Nu există date potrivite',
|
||||
noData: 'Nu există date',
|
||||
titles: ['Lista 1', 'Lista 2'],
|
||||
filterPlaceholder: 'Introduceți cuvântul cheie',
|
||||
noCheckedFormat: '{total} elemente',
|
||||
hasCheckedFormat: '{checked}/{total} verificate'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/ru-RU.js
Normal file
120
src/locale/lang/ru-RU.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Очистить'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Сейчас',
|
||||
today: 'Сегодня',
|
||||
cancel: 'Отмена',
|
||||
clear: 'Очистить',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Выбрать дату',
|
||||
selectTime: 'Выбрать время',
|
||||
startDate: 'Дата начала',
|
||||
startTime: 'Время начала',
|
||||
endDate: 'Дата окончания',
|
||||
endTime: 'Время окончания',
|
||||
prevYear: 'Предыдущий год',
|
||||
nextYear: 'Следующий год',
|
||||
prevMonth: 'Предыдущий месяц',
|
||||
nextMonth: 'Следующий месяц',
|
||||
year: '',
|
||||
month1: 'Январь',
|
||||
month2: 'Февраль',
|
||||
month3: 'Март',
|
||||
month4: 'Апрель',
|
||||
month5: 'Май',
|
||||
month6: 'Июнь',
|
||||
month7: 'Июль',
|
||||
month8: 'Август',
|
||||
month9: 'Сентябрь',
|
||||
month10: 'Октябрь',
|
||||
month11: 'Ноябрь',
|
||||
month12: 'Декабрь',
|
||||
week: 'неделя',
|
||||
weeks: {
|
||||
sun: 'Вс',
|
||||
mon: 'Пн',
|
||||
tue: 'Вт',
|
||||
wed: 'Ср',
|
||||
thu: 'Чт',
|
||||
fri: 'Пт',
|
||||
sat: 'Сб'
|
||||
},
|
||||
months: {
|
||||
jan: 'Янв',
|
||||
feb: 'Фев',
|
||||
mar: 'Мар',
|
||||
apr: 'Апр',
|
||||
may: 'Май',
|
||||
jun: 'Июн',
|
||||
jul: 'Июл',
|
||||
aug: 'Авг',
|
||||
sep: 'Сен',
|
||||
oct: 'Окт',
|
||||
nov: 'Ноя',
|
||||
dec: 'Дек'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Загрузка',
|
||||
noMatch: 'Совпадений не найдено',
|
||||
noData: 'Нет данных',
|
||||
placeholder: 'Выбрать'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Совпадений не найдено',
|
||||
loading: 'Загрузка',
|
||||
placeholder: 'Выбрать',
|
||||
noData: 'Нет данных'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Перейти',
|
||||
pagesize: ' на странице',
|
||||
total: 'Всего {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Сообщение',
|
||||
confirm: 'OK',
|
||||
cancel: 'Отмена',
|
||||
error: 'Недопустимый ввод данных'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Нажмите [Удалить] для удаления',
|
||||
delete: 'Удалить',
|
||||
preview: 'Предпросмотр',
|
||||
continue: 'Продолжить'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Нет данных',
|
||||
confirmFilter: 'Подтвердить',
|
||||
resetFilter: 'Сбросить',
|
||||
clearFilter: 'Все',
|
||||
sumText: 'Сумма'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Нет данных'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Совпадений не найдено',
|
||||
noData: 'Нет данных',
|
||||
titles: ['Список 1', 'Список 2'],
|
||||
filterPlaceholder: 'Введите ключевое слово',
|
||||
noCheckedFormat: '{total} пунктов',
|
||||
hasCheckedFormat: '{checked}/{total} выбрано'
|
||||
},
|
||||
image: {
|
||||
error: 'Произошла ошибка'
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Назад'
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'OK',
|
||||
cancelButtonText: 'Отмена'
|
||||
}
|
||||
}
|
||||
};
|
122
src/locale/lang/sk.js
Normal file
122
src/locale/lang/sk.js
Normal file
@@ -0,0 +1,122 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Zmazať'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Teraz',
|
||||
today: 'Dnes',
|
||||
cancel: 'Zrušiť',
|
||||
clear: 'Zmazať',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Vybrať dátum',
|
||||
selectTime: 'Vybrať čas',
|
||||
startDate: 'Dátum začiatku',
|
||||
startTime: 'Čas začiatku',
|
||||
endDate: 'Dátum konca',
|
||||
endTime: 'Čas konca',
|
||||
prevYear: 'Predošlý rok',
|
||||
nextYear: 'Ďalší rok',
|
||||
prevMonth: 'Predošlý mesiac',
|
||||
nextMonth: 'Ďalší mesiac',
|
||||
day: 'Deň',
|
||||
week: 'Týždeň',
|
||||
month: 'Mesiac',
|
||||
year: 'Rok',
|
||||
month1: 'Január',
|
||||
month2: 'Február',
|
||||
month3: 'Marec',
|
||||
month4: 'Apríl',
|
||||
month5: 'Máj',
|
||||
month6: 'Jún',
|
||||
month7: 'Júl',
|
||||
month8: 'August',
|
||||
month9: 'September',
|
||||
month10: 'Október',
|
||||
month11: 'November',
|
||||
month12: 'December',
|
||||
weeks: {
|
||||
sun: 'Ne',
|
||||
mon: 'Po',
|
||||
tue: 'Ut',
|
||||
wed: 'St',
|
||||
thu: 'Št',
|
||||
fri: 'Pi',
|
||||
sat: 'So'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Feb',
|
||||
mar: 'Mar',
|
||||
apr: 'Apr',
|
||||
may: 'Máj',
|
||||
jun: 'Jún',
|
||||
jul: 'Júl',
|
||||
aug: 'Aug',
|
||||
sep: 'Sep',
|
||||
oct: 'Okt',
|
||||
nov: 'Nov',
|
||||
dec: 'Dec'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Načítavanie',
|
||||
noMatch: 'Žiadna zhoda',
|
||||
noData: 'Žiadne dáta',
|
||||
placeholder: 'Vybrať'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Žiadna zhoda',
|
||||
loading: 'Načítavanie',
|
||||
placeholder: 'Vybrať',
|
||||
noData: 'Žiadne dáta'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Choď na',
|
||||
pagesize: 'na stranu',
|
||||
total: 'Všetko {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Správa',
|
||||
confirm: 'OK',
|
||||
cancel: 'Zrušiť',
|
||||
error: 'Neplatný vstup'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'pre odstránenie stisni klávesu Delete',
|
||||
delete: 'Vymazať',
|
||||
preview: 'Prehliadať',
|
||||
continue: 'Pokračovať'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Žiadne dáta',
|
||||
confirmFilter: 'Potvrdiť',
|
||||
resetFilter: 'Zresetovať',
|
||||
clearFilter: 'Všetko',
|
||||
sumText: 'Spolu'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Žiadne dáta'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Žiadna zhoda',
|
||||
noData: 'Žiadne dáta',
|
||||
titles: ['Zoznam 1', 'Zoznam 2'],
|
||||
filterPlaceholder: 'Filtrovať podľa',
|
||||
noCheckedFormat: '{total} položiek',
|
||||
hasCheckedFormat: '{checked}/{total} označených'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/sl.js
Normal file
120
src/locale/lang/sl.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'V redu',
|
||||
clear: 'Počisti'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Zdaj',
|
||||
today: 'Danes',
|
||||
cancel: 'Prekliči',
|
||||
clear: 'Počisti',
|
||||
confirm: 'Potrdi',
|
||||
selectDate: 'Izberi datum',
|
||||
selectTime: 'Izberi čas',
|
||||
startDate: 'Začetni datum',
|
||||
startTime: 'Začetni čas',
|
||||
endDate: 'Končni datum',
|
||||
endTime: 'Končni čas',
|
||||
prevYear: 'Prejšnje leto',
|
||||
nextYear: 'Naslednje leto',
|
||||
prevMonth: 'Prejšnji mesec',
|
||||
nextMonth: 'Naslednji mesec',
|
||||
year: '',
|
||||
month1: 'Jan',
|
||||
month2: 'Feb',
|
||||
month3: 'Mar',
|
||||
month4: 'Apr',
|
||||
month5: 'Maj',
|
||||
month6: 'Jun',
|
||||
month7: 'Jul',
|
||||
month8: 'Avg',
|
||||
month9: 'Sep',
|
||||
month10: 'Okt',
|
||||
month11: 'Nov',
|
||||
month12: 'Dec',
|
||||
week: 'teden',
|
||||
weeks: {
|
||||
sun: 'Ned',
|
||||
mon: 'Pon',
|
||||
tue: 'Tor',
|
||||
wed: 'Sre',
|
||||
thu: 'Čet',
|
||||
fri: 'Pet',
|
||||
sat: 'Sob'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Feb',
|
||||
mar: 'Mar',
|
||||
apr: 'Apr',
|
||||
may: 'Maj',
|
||||
jun: 'Jun',
|
||||
jul: 'Jul',
|
||||
aug: 'Avg',
|
||||
sep: 'Sep',
|
||||
oct: 'Okt',
|
||||
nov: 'Nov',
|
||||
dec: 'Dec'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Nalaganje',
|
||||
noMatch: 'Ni ustreznih podatkov',
|
||||
noData: 'Ni podatkov',
|
||||
placeholder: 'Izberi'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Ni ustreznih podatkov',
|
||||
loading: 'Nalaganje',
|
||||
placeholder: 'Izberi',
|
||||
noData: 'Ni podatkov'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Pojdi na',
|
||||
pagesize: '/stran',
|
||||
total: 'Skupno {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Sporočilo',
|
||||
confirm: 'V redu',
|
||||
cancel: 'Prekliči',
|
||||
error: 'Nedovoljen vnos'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'press delete to remove', // to be translated
|
||||
delete: 'Izbriši',
|
||||
preview: 'Predogled',
|
||||
continue: 'Nadaljuj'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Ni podatkov',
|
||||
confirmFilter: 'Potrdi',
|
||||
resetFilter: 'Ponastavi',
|
||||
clearFilter: 'Vse',
|
||||
sumText: 'Skupno'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Ni podatkov'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Ni ustreznih podatkov',
|
||||
noData: 'Ni podatkov',
|
||||
titles: ['Seznam 1', 'Seznam 2'],
|
||||
filterPlaceholder: 'Vnesi ključno besedo',
|
||||
noCheckedFormat: '{total} elementov',
|
||||
hasCheckedFormat: '{checked}/{total} izbranih'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/sr.js
Normal file
120
src/locale/lang/sr.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Поништи'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Сад',
|
||||
today: 'Данас',
|
||||
cancel: 'Откажи',
|
||||
clear: 'Бриши',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Изабери датум',
|
||||
selectTime: 'Изабери време',
|
||||
startDate: 'Датум почетка',
|
||||
startTime: 'Време почетка',
|
||||
endDate: 'Датум завршетка',
|
||||
endTime: 'Време завршетка',
|
||||
prevYear: 'Претходна година',
|
||||
nextYear: 'Следећа година',
|
||||
prevMonth: 'Претходни месец',
|
||||
nextMonth: 'Следећи месец',
|
||||
year: 'година',
|
||||
month1: 'јануар',
|
||||
month2: 'фебруар',
|
||||
month3: 'март',
|
||||
month4: 'април',
|
||||
month5: 'мај',
|
||||
month6: 'јун',
|
||||
month7: 'јул',
|
||||
month8: 'август',
|
||||
month9: 'септембар',
|
||||
month10: 'октобар',
|
||||
month11: 'новембар',
|
||||
month12: 'децембар',
|
||||
week: 'седмица',
|
||||
weeks: {
|
||||
sun: 'Нед',
|
||||
mon: 'Пон',
|
||||
tue: 'Уто',
|
||||
wed: 'Сре',
|
||||
thu: 'Чет',
|
||||
fri: 'Пет',
|
||||
sat: 'Суб'
|
||||
},
|
||||
months: {
|
||||
jan: 'јан',
|
||||
feb: 'феб',
|
||||
mar: 'мар',
|
||||
apr: 'апр',
|
||||
may: 'мај',
|
||||
jun: 'јун',
|
||||
jul: 'јул',
|
||||
aug: 'авг',
|
||||
sep: 'сеп',
|
||||
oct: 'окт',
|
||||
nov: 'нов',
|
||||
dec: 'дец'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Учитавање',
|
||||
noMatch: 'Нема резултата',
|
||||
noData: 'Нема података',
|
||||
placeholder: 'Изабери'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Нема резултата',
|
||||
loading: 'Учитавање',
|
||||
placeholder: 'Изабери',
|
||||
noData: 'Нема података'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Иди на',
|
||||
pagesize: '/страни',
|
||||
total: 'Укупно {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Порука',
|
||||
confirm: 'OK',
|
||||
cancel: 'Откажи',
|
||||
error: 'Неисправан унос'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'притисни БРИШИ да обришеш',
|
||||
delete: 'Бриши',
|
||||
preview: 'Види',
|
||||
continue: 'Настави'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Нема података',
|
||||
confirmFilter: 'Потврди',
|
||||
resetFilter: 'Ресетуј',
|
||||
clearFilter: 'Све',
|
||||
sumText: 'Збир'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Нема података'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Нема резултата',
|
||||
noData: 'Нема података',
|
||||
titles: ['Листа 1', 'Листа 2'], // to be translated
|
||||
filterPlaceholder: 'Унеси кључну реч', // to be translated
|
||||
noCheckedFormat: '{total} ставки', // to be translated
|
||||
hasCheckedFormat: '{checked}/{total} обележених' // to be translated
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/sv-SE.js
Normal file
120
src/locale/lang/sv-SE.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Töm'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Nu',
|
||||
today: 'Idag',
|
||||
cancel: 'Avbryt',
|
||||
clear: 'Töm',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Välj datum',
|
||||
selectTime: 'Välj tid',
|
||||
startDate: 'Startdatum',
|
||||
startTime: 'Starttid',
|
||||
endDate: 'Slutdatum',
|
||||
endTime: 'Sluttid',
|
||||
prevYear: 'Föregående år',
|
||||
nextYear: 'Nästa år',
|
||||
prevMonth: 'Föregående månad',
|
||||
nextMonth: 'Nästa månad',
|
||||
year: '',
|
||||
month1: 'Januari',
|
||||
month2: 'Februari',
|
||||
month3: 'Mars',
|
||||
month4: 'April',
|
||||
month5: 'Maj',
|
||||
month6: 'Juni',
|
||||
month7: 'Juli',
|
||||
month8: 'Augusti',
|
||||
month9: 'September',
|
||||
month10: 'Oktober',
|
||||
month11: 'November',
|
||||
month12: 'December',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'Sön',
|
||||
mon: 'Mån',
|
||||
tue: 'Tis',
|
||||
wed: 'Ons',
|
||||
thu: 'Tor',
|
||||
fri: 'Fre',
|
||||
sat: 'Lör'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Feb',
|
||||
mar: 'Mar',
|
||||
apr: 'Apr',
|
||||
may: 'Maj',
|
||||
jun: 'Jun',
|
||||
jul: 'Jul',
|
||||
aug: 'Aug',
|
||||
sep: 'Sep',
|
||||
oct: 'Okt',
|
||||
nov: 'Nov',
|
||||
dec: 'Dec'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Laddar',
|
||||
noMatch: 'Hittade inget',
|
||||
noData: 'Ingen data',
|
||||
placeholder: 'Välj'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Hittade inget',
|
||||
loading: 'Laddar',
|
||||
placeholder: 'Välj',
|
||||
noData: 'Ingen data'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Gå till',
|
||||
pagesize: '/sida',
|
||||
total: 'Totalt {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Meddelande',
|
||||
confirm: 'OK',
|
||||
cancel: 'Avbryt',
|
||||
error: 'Felaktig inmatning'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'press delete to remove', // to be translated
|
||||
delete: 'Radera',
|
||||
preview: 'Förhandsvisa',
|
||||
continue: 'Fortsätt'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Inga Data',
|
||||
confirmFilter: 'Bekräfta',
|
||||
resetFilter: 'Återställ',
|
||||
clearFilter: 'Alla',
|
||||
sumText: 'Summa'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Ingen data'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Hittade inget',
|
||||
noData: 'Ingen data',
|
||||
titles: ['List 1', 'List 2'], // to be translated
|
||||
filterPlaceholder: 'Enter keyword', // to be translated
|
||||
noCheckedFormat: '{total} items', // to be translated
|
||||
hasCheckedFormat: '{checked}/{total} checked' // to be translated
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Bakåt' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Ja',
|
||||
cancelButtonText: 'Nej'
|
||||
}
|
||||
}
|
||||
};
|
119
src/locale/lang/ta.js
Normal file
119
src/locale/lang/ta.js
Normal file
@@ -0,0 +1,119 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'உறுதி செய்',
|
||||
clear: 'தெளிவாக்கு'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'தற்போது',
|
||||
today: 'இன்று',
|
||||
cancel: 'ரத்து செய்',
|
||||
clear: 'சரி',
|
||||
confirm: 'உறுதி செய்',
|
||||
selectDate: 'தேதியை தேர்வு செய்',
|
||||
selectTime: 'நேரத்தை தேர்வு செய்',
|
||||
startDate: 'தொடங்கும் நாள்',
|
||||
startTime: 'தொடங்கும் நேரம்',
|
||||
endDate: 'முடியும் தேதி',
|
||||
endTime: 'முடியும் நேரம்',
|
||||
prevYear: 'Previous Year', // to be translated
|
||||
nextYear: 'Next Year', // to be translated
|
||||
prevMonth: 'Previous Month', // to be translated
|
||||
nextMonth: 'Next Month', // to be translated
|
||||
year: 'வருடம்',
|
||||
month1: 'ஜனவரி',
|
||||
month2: 'பிப்ரவரி',
|
||||
month3: 'மார்ச்',
|
||||
month4: 'ஏப்ரல்',
|
||||
month5: 'மே',
|
||||
month6: 'ஜூன்',
|
||||
month7: 'ஜூலை',
|
||||
month8: 'ஆகஸ்ட்',
|
||||
month9: 'செப்டம்பர்',
|
||||
month10: 'அக்டோபர்',
|
||||
month11: 'நவம்பர்',
|
||||
month12: 'டிசம்பர்',
|
||||
weeks: {
|
||||
sun: 'ஞாயிறு',
|
||||
mon: 'திங்கள்',
|
||||
tue: 'செவ்வாய்',
|
||||
wed: 'புதன்',
|
||||
thu: 'வியாழன்',
|
||||
fri: 'வெள்ளி',
|
||||
sat: 'சனி'
|
||||
},
|
||||
months: {
|
||||
jan: 'ஜனவரி',
|
||||
feb: 'பிப்ரவரி',
|
||||
mar: 'மார்ச்',
|
||||
apr: 'ஏப்ரல்',
|
||||
may: 'மே',
|
||||
jun: 'ஜூன்',
|
||||
jul: 'ஜூலை',
|
||||
aug: 'ஆகஸ்ட்',
|
||||
sep: 'செப்டம்பர்',
|
||||
oct: 'அக்டோபர்',
|
||||
nov: 'நவம்பர்',
|
||||
dec: 'டிசம்பர்'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'தயாராகிக்கொண்டிருக்கிறது',
|
||||
noMatch: 'பொருத்தமான தரவு கிடைக்கவில்லை',
|
||||
noData: 'தரவு இல்லை',
|
||||
placeholder: 'தேர்வு செய்'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'பொருத்தமான தரவு கிடைக்கவில்லை',
|
||||
loading: 'தயாராகிக்கொண்டிருக்கிறது',
|
||||
placeholder: 'தேர்வு செய்',
|
||||
noData: 'தரவு இல்லை'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'தேவையான் பகுதிக்கு செல்',
|
||||
pagesize: '/page',
|
||||
total: 'மொத்தம் {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'செய்தி',
|
||||
confirm: 'உறுதி செய்',
|
||||
cancel: 'ரத்து செய்',
|
||||
error: 'பொருத்தாமில்லாத உள்ளீடு'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'press delete to remove', // to be translated
|
||||
delete: 'நீக்கு',
|
||||
preview: 'முன்னோட்டம் பார்',
|
||||
continue: 'தொடரு'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'தரவு இல்லை',
|
||||
confirmFilter: 'உறுதி செய்',
|
||||
resetFilter: 'புதுமாற்றம் செய்',
|
||||
clearFilter: 'அனைத்தும்',
|
||||
sumText: 'கூட்டு'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'தரவு இல்லை'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'பொருத்தமான தரவு கிடைக்கவில்லை',
|
||||
noData: 'தரவு இல்லை',
|
||||
titles: ['பட்டியல் 1', 'பட்டியல் 2'],
|
||||
filterPlaceholder: 'சொல்லை உள்ளீடு செய்',
|
||||
noCheckedFormat: '{total} items', // to be translated
|
||||
hasCheckedFormat: '{checked}/{total} தேர்வு செய்யப்பட்டவைகள்'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/th.js
Normal file
120
src/locale/lang/th.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'ตกลง',
|
||||
clear: 'ล้างข้อมูล'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'ตอนนี้',
|
||||
today: 'วันนี้',
|
||||
cancel: 'ยกเลิก',
|
||||
clear: 'ล้างข้อมูล',
|
||||
confirm: 'ตกลง',
|
||||
selectDate: 'เลือกวันที่',
|
||||
selectTime: 'เลือกเวลา',
|
||||
startDate: 'วันที่เริ่มต้น',
|
||||
startTime: 'เวลาเริ่มต้น',
|
||||
endDate: 'วันที่สิ้นสุด',
|
||||
endTime: 'เวลาสิ้นสุด',
|
||||
prevYear: 'ปีก่อนหน้า',
|
||||
nextYear: 'ปีถัดไป',
|
||||
prevMonth: 'เดือนก่อนหน้า',
|
||||
nextMonth: 'เดือนถัดไป',
|
||||
year: 'ปี',
|
||||
month1: 'มกราคม',
|
||||
month2: 'กุมภาพันธ์',
|
||||
month3: 'มีนาคม',
|
||||
month4: 'เมษายน',
|
||||
month5: 'พฤษภาคม',
|
||||
month6: 'มิถุนายน',
|
||||
month7: 'กรกฎาคม',
|
||||
month8: 'สิงหาคม',
|
||||
month9: 'กันยายน',
|
||||
month10: 'ตุลาคม',
|
||||
month11: 'พฤศจิกายน',
|
||||
month12: 'ธันวาคม',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'อา',
|
||||
mon: 'จ',
|
||||
tue: 'อ',
|
||||
wed: 'พ',
|
||||
thu: 'พฤ',
|
||||
fri: 'ศ',
|
||||
sat: 'ส'
|
||||
},
|
||||
months: {
|
||||
jan: 'มกรา',
|
||||
feb: 'กุมภา',
|
||||
mar: 'มีนา',
|
||||
apr: 'เมษา',
|
||||
may: 'พฤษภา',
|
||||
jun: 'มิถุนา',
|
||||
jul: 'กรกฎา',
|
||||
aug: 'สิงหา',
|
||||
sep: 'กันยา',
|
||||
oct: 'ตุลา',
|
||||
nov: 'พฤศจิกา',
|
||||
dec: 'ธันวา'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'กำลังโหลด',
|
||||
noMatch: 'ไม่พบข้อมูลที่ตรงกัน',
|
||||
noData: 'ไม่พบข้อมูล',
|
||||
placeholder: 'เลือก'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'ไม่พบข้อมูลที่ตรงกัน',
|
||||
loading: 'กำลังโหลด',
|
||||
placeholder: 'เลือก',
|
||||
noData: 'ไม่พบข้อมูล'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'ไปที่',
|
||||
pagesize: '/หน้า',
|
||||
total: 'ทั้งหมด {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'ข้อความ',
|
||||
confirm: 'ตกลง',
|
||||
cancel: 'ยกเลิก',
|
||||
error: 'คุณป้อนข้อมูลไม่ถูกต้อง'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'กดปุ่ม "ลบ" เพื่อลบออก',
|
||||
delete: 'ลบ',
|
||||
preview: 'ตัวอย่าง',
|
||||
continue: 'ทำต่อ'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'ไม่พบข้อมูล',
|
||||
confirmFilter: 'ยืนยัน',
|
||||
resetFilter: 'รีเซ็ต',
|
||||
clearFilter: 'ทั้งหมด',
|
||||
sumText: 'รวม'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'ไม่พบข้อมูล'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'ไม่พบข้อมูลที่ตรงกัน',
|
||||
noData: 'ไม่พบข้อมูล',
|
||||
titles: ['List 1', 'List 2'], // to be translated
|
||||
filterPlaceholder: 'กรอกคีย์เวิร์ด',
|
||||
noCheckedFormat: '{total} items', // to be translated
|
||||
hasCheckedFormat: '{checked}/{total} checked' // to be translated
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'ย้อนกลับ'
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/tk.js
Normal file
120
src/locale/lang/tk.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Arassala'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Şuwagt',
|
||||
today: 'Şügün',
|
||||
cancel: 'Bes et',
|
||||
clear: 'Arassala',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Güni saýlaň',
|
||||
selectTime: 'Wagty saýlaň',
|
||||
startDate: 'Başlaýan güni',
|
||||
startTime: 'Başlaýan wagty',
|
||||
endDate: 'Gutarýan güni',
|
||||
endTime: 'Gutarýan wagty',
|
||||
prevYear: 'Previous Year', // to be translated
|
||||
nextYear: 'Next Year', // to be translated
|
||||
prevMonth: 'Previous Month', // to be translated
|
||||
nextMonth: 'Next Month', // to be translated
|
||||
year: '',
|
||||
month1: 'Ýan',
|
||||
month2: 'Few',
|
||||
month3: 'Mar',
|
||||
month4: 'Apr',
|
||||
month5: 'Maý',
|
||||
month6: 'Iýn',
|
||||
month7: 'Iýl',
|
||||
month8: 'Awg',
|
||||
month9: 'Sen',
|
||||
month10: 'Okt',
|
||||
month11: 'Noý',
|
||||
month12: 'Dek',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'Ýek',
|
||||
mon: 'Duş',
|
||||
tue: 'Siş',
|
||||
wed: 'Çar',
|
||||
thu: 'Pen',
|
||||
fri: 'Ann',
|
||||
sat: 'Şen'
|
||||
},
|
||||
months: {
|
||||
jan: 'Ýan',
|
||||
feb: 'Few',
|
||||
mar: 'Mar',
|
||||
apr: 'Apr',
|
||||
may: 'Maý',
|
||||
jun: 'Iýn',
|
||||
jul: 'Iýl',
|
||||
aug: 'Awg',
|
||||
sep: 'Sep',
|
||||
oct: 'Okt',
|
||||
nov: 'Noý',
|
||||
dec: 'Dek'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Indirilýär',
|
||||
noMatch: 'Hiçzat tapylmady',
|
||||
noData: 'Hiçzat ýok',
|
||||
placeholder: 'Saýla'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Hiçzat tapylmady',
|
||||
loading: 'Indirilýär',
|
||||
placeholder: 'Saýlaň',
|
||||
noData: 'Hiçzat ýok'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Git',
|
||||
pagesize: '/sahypa',
|
||||
total: 'Umumy {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Hat',
|
||||
confirm: 'OK',
|
||||
cancel: 'Bes et',
|
||||
error: 'Ýalňyş girizme'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Pozmak üçin "poz" düwmä basyň',
|
||||
delete: 'Poz',
|
||||
preview: 'Gör',
|
||||
continue: 'Dowam et'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Maglumat ýok',
|
||||
confirmFilter: 'Tassykla',
|
||||
resetFilter: 'Arassala',
|
||||
clearFilter: 'Hemmesi',
|
||||
sumText: 'Jemi'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Maglumat ýok'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Hiçzat tapylmady',
|
||||
noData: 'Hiçzat ýok',
|
||||
titles: ['Sanaw 1', 'Sanaw 2'],
|
||||
filterPlaceholder: 'Gözleg sözlerini giriziň',
|
||||
noCheckedFormat: '{total} sany',
|
||||
hasCheckedFormat: '{checked}/{total} saýlanan'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/tr-TR.js
Normal file
120
src/locale/lang/tr-TR.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Onayla',
|
||||
clear: 'Temizle'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Şimdi',
|
||||
today: 'Bugün',
|
||||
cancel: 'İptal',
|
||||
clear: 'Temizle',
|
||||
confirm: 'Onayla',
|
||||
selectDate: 'Tarih seç',
|
||||
selectTime: 'Saat seç',
|
||||
startDate: 'Başlangıç Tarihi',
|
||||
startTime: 'Başlangıç Saati',
|
||||
endDate: 'Bitiş Tarihi',
|
||||
endTime: 'Bitiş Saati',
|
||||
prevYear: 'Önceki Yıl',
|
||||
nextYear: 'Sonraki Yıl',
|
||||
prevMonth: 'Önceki Ay',
|
||||
nextMonth: 'Sonraki Ay',
|
||||
year: '',
|
||||
month1: 'Ocak',
|
||||
month2: 'Şubat',
|
||||
month3: 'Mart',
|
||||
month4: 'Nisan',
|
||||
month5: 'Mayıs',
|
||||
month6: 'Haziran',
|
||||
month7: 'Temmuz',
|
||||
month8: 'Ağustos',
|
||||
month9: 'Eylül',
|
||||
month10: 'Ekim',
|
||||
month11: 'Kasım',
|
||||
month12: 'Aralık',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'Paz',
|
||||
mon: 'Pzt',
|
||||
tue: 'Sal',
|
||||
wed: 'Çar',
|
||||
thu: 'Per',
|
||||
fri: 'Cum',
|
||||
sat: 'Cmt'
|
||||
},
|
||||
months: {
|
||||
jan: 'Oca',
|
||||
feb: 'Şub',
|
||||
mar: 'Mar',
|
||||
apr: 'Nis',
|
||||
may: 'May',
|
||||
jun: 'Haz',
|
||||
jul: 'Tem',
|
||||
aug: 'Ağu',
|
||||
sep: 'Eyl',
|
||||
oct: 'Eki',
|
||||
nov: 'Kas',
|
||||
dec: 'Ara'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Yükleniyor',
|
||||
noMatch: 'Eşleşen veri bulunamadı',
|
||||
noData: 'Veri yok',
|
||||
placeholder: 'Seç'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Eşleşen veri bulunamadı',
|
||||
loading: 'Yükleniyor',
|
||||
placeholder: 'Seç',
|
||||
noData: 'Veri yok'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Git',
|
||||
pagesize: '/sayfa',
|
||||
total: 'Toplam {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Mesaj',
|
||||
confirm: 'Onayla',
|
||||
cancel: 'İptal',
|
||||
error: 'İllegal giriş'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'kaldırmak için delete tuşuna bas',
|
||||
delete: 'Sil',
|
||||
preview: 'Görüntüle',
|
||||
continue: 'Devam'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Veri yok',
|
||||
confirmFilter: 'Onayla',
|
||||
resetFilter: 'Sıfırla',
|
||||
clearFilter: 'Hepsi',
|
||||
sumText: 'Sum'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Veri yok'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Eşleşen veri bulunamadı',
|
||||
noData: 'Veri yok',
|
||||
titles: ['Liste 1', 'Liste 2'],
|
||||
filterPlaceholder: 'Anahtar kelimeleri gir',
|
||||
noCheckedFormat: '{total} adet',
|
||||
hasCheckedFormat: '{checked}/{total} seçildi'
|
||||
},
|
||||
image: {
|
||||
error: 'FAILED' // to be translated
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Back' // to be translated
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/ua.js
Normal file
120
src/locale/lang/ua.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Обрати',
|
||||
clear: 'Очистити'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Зараз',
|
||||
today: 'Сьогодні',
|
||||
cancel: 'Відміна',
|
||||
clear: 'Очистити',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Вибрати дату',
|
||||
selectTime: 'Вибрати час',
|
||||
startDate: 'Дата початку',
|
||||
startTime: 'Час початку',
|
||||
endDate: 'Дата завершення',
|
||||
endTime: 'Час завершення',
|
||||
prevYear: 'Попередній Рік',
|
||||
nextYear: 'Наступний Рік',
|
||||
prevMonth: 'Попередній Місяць',
|
||||
nextMonth: 'Наступний Місяць',
|
||||
year: '',
|
||||
month1: 'Січень',
|
||||
month2: 'Лютий',
|
||||
month3: 'Березень',
|
||||
month4: 'Квітень',
|
||||
month5: 'Травень',
|
||||
month6: 'Червень',
|
||||
month7: 'Липень',
|
||||
month8: 'Серпень',
|
||||
month9: 'Вересень',
|
||||
month10: 'Жовтень',
|
||||
month11: 'Листопад',
|
||||
month12: 'Грудень',
|
||||
week: 'тиждень',
|
||||
weeks: {
|
||||
sun: 'Нд',
|
||||
mon: 'Пн',
|
||||
tue: 'Вт',
|
||||
wed: 'Ср',
|
||||
thu: 'Чт',
|
||||
fri: 'Пт',
|
||||
sat: 'Сб'
|
||||
},
|
||||
months: {
|
||||
jan: 'Січ',
|
||||
feb: 'Лют',
|
||||
mar: 'Бер',
|
||||
apr: 'Кві',
|
||||
may: 'Тра',
|
||||
jun: 'Чер',
|
||||
jul: 'Лип',
|
||||
aug: 'Сер',
|
||||
sep: 'Вер',
|
||||
oct: 'Жов',
|
||||
nov: 'Лис',
|
||||
dec: 'Гру'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Завантаження',
|
||||
noMatch: 'Співпадінь не знайдено',
|
||||
noData: 'Немає даних',
|
||||
placeholder: 'Обрати'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Співпадінь не знайдено',
|
||||
loading: 'Завантаження',
|
||||
placeholder: 'Обрати',
|
||||
noData: 'Немає даних'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Перейти',
|
||||
pagesize: 'на сторінці',
|
||||
total: 'Всього {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Повідомлення',
|
||||
confirm: 'OK',
|
||||
cancel: 'Відміна',
|
||||
error: 'Неприпустимий ввід даних'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'натисніть кнопку щоб видалити',
|
||||
delete: 'Видалити',
|
||||
preview: 'Перегляд',
|
||||
continue: 'Продовжити'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Немає даних',
|
||||
confirmFilter: 'Підтвердити',
|
||||
resetFilter: 'Скинути',
|
||||
clearFilter: 'Все',
|
||||
sumText: 'Сума'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Немає даних'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Співпадінь не знайдено',
|
||||
noData: 'Обрати',
|
||||
titles: ['Список 1', 'Список 2'],
|
||||
filterPlaceholder: 'Введіть ключове слово',
|
||||
noCheckedFormat: '{total} пунктів',
|
||||
hasCheckedFormat: '{checked}/{total} вибрано'
|
||||
},
|
||||
image: {
|
||||
error: 'ПОМИЛКА'
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Назад'
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Так',
|
||||
cancelButtonText: 'Ні'
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/ug-CN.js
Normal file
120
src/locale/lang/ug-CN.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'جەزملەش',
|
||||
clear: 'قۇرۇقداش'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'ھازىرقى ۋاقىت',
|
||||
today: 'بۈگۈن',
|
||||
cancel: 'بىكار قىلىش',
|
||||
clear: 'قۇرۇقداش',
|
||||
confirm: 'جەزملەش',
|
||||
selectDate: 'چىسلا تاللاڭ',
|
||||
selectTime: 'ۋاقىت تاللاڭ',
|
||||
startDate: 'باشلانغان چىسلا',
|
||||
startTime: 'باشلانغان ۋاقىت',
|
||||
endDate: 'ئاخىرلاشقان چىسلا',
|
||||
endTime: 'ئاخىرلاشقان ۋاقىت',
|
||||
prevYear: 'ئالدىنقى يىل',
|
||||
nextYear: 'كىيىنكى يىل',
|
||||
prevMonth: 'ئالدىنقى ئاي',
|
||||
nextMonth: 'كىيىنكى ئاي',
|
||||
year: '- يىل',
|
||||
month1: '1-ئاي',
|
||||
month2: '2-ئاي',
|
||||
month3: '3-ئاي',
|
||||
month4: '4-ئاي',
|
||||
month5: '5-ئاي',
|
||||
month6: '6-ئاي',
|
||||
month7: '7-ئاي',
|
||||
month8: '8-ئاي',
|
||||
month9: '9-ئاي',
|
||||
month10: '10-ئاي',
|
||||
month11: '11-ئاي',
|
||||
month12: '12-ئاي',
|
||||
// week: '周次',
|
||||
weeks: {
|
||||
sun: 'يەكشەنبە',
|
||||
mon: 'دۈشەنبە',
|
||||
tue: 'سەيشەنبە',
|
||||
wed: 'چارشەنبە',
|
||||
thu: 'پەيشەنبە',
|
||||
fri: 'جۈمە',
|
||||
sat: 'شەنبە'
|
||||
},
|
||||
months: {
|
||||
jan: '1-ئاي',
|
||||
feb: '2-ئاي',
|
||||
mar: '3-ئاي',
|
||||
apr: '4-ئاي',
|
||||
may: '5-ئاي',
|
||||
jun: '6-ئاي',
|
||||
jul: '7-ئاي',
|
||||
aug: '8-ئاي',
|
||||
sep: '9-ئاي',
|
||||
oct: '10-ئاي',
|
||||
nov: '11-ئاي',
|
||||
dec: '12-ئاي'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'يۈكلىنىۋاتىدۇ',
|
||||
noMatch: 'ئۇچۇر تېپىلمىدى',
|
||||
noData: 'ئۇچۇر يوق',
|
||||
placeholder: 'تاللاڭ'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'ئۇچۇر تېپىلمىدى',
|
||||
loading: 'يۈكلىنىۋاتىدۇ',
|
||||
placeholder: 'تاللاڭ',
|
||||
noData: 'ئۇچۇر يوق'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'كىيىنكى بەت',
|
||||
pagesize: 'تال/بەت',
|
||||
total: 'جەمئىي {total} تال',
|
||||
pageClassifier: 'بەت'
|
||||
},
|
||||
messagebox: {
|
||||
title: 'ئەسكەرتىش',
|
||||
confirm: 'جەزملەش',
|
||||
cancel: 'بىكار قىلىش',
|
||||
error: 'كىرگۈزگەن ئۇچۇرىڭىزدا خاتالىق بار!'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'delete كۇنپكىسىنى بېسىپ ئۆچۈرەلەيسىز',
|
||||
delete: 'ئۆچۈرۈش',
|
||||
preview: 'رەسىمنى كۆرۈش',
|
||||
continue: 'رەسىم يوللاش'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'ئۇچۇر يوق',
|
||||
confirmFilter: 'سۈزگۈچ',
|
||||
resetFilter: 'قايتا تولدۇرۇش',
|
||||
clearFilter: 'ھەممە',
|
||||
sumText: 'جەمئىي'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'ئۇچۇر يوق'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'ئۇچۇر تېپىلمىدى',
|
||||
noData: 'ئۇچۇر يوق',
|
||||
titles: ['جەدۋەل 1', 'جەدۋەل 2'],
|
||||
filterPlaceholder: 'ئىزدىمەكچى بولغان مەزمۇننى كىرگۈزۈڭ',
|
||||
noCheckedFormat: 'جەمئىي {total} تۈر',
|
||||
hasCheckedFormat: 'تاللانغىنى {checked}/{total} تۈر'
|
||||
},
|
||||
image: {
|
||||
error: 'مەغلۇب بولدى'
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'قايتىش'
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'ھەئە',
|
||||
cancelButtonText: 'ياق'
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/uz-UZ.js
Normal file
120
src/locale/lang/uz-UZ.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Qabul qilish',
|
||||
clear: 'Tozalash'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Hozir',
|
||||
today: 'Bugun',
|
||||
cancel: 'Bekor qilish',
|
||||
clear: 'Tozalash',
|
||||
confirm: 'Qabul qilish',
|
||||
selectDate: 'Kunni tanlash',
|
||||
selectTime: 'Soatni tanlash',
|
||||
startDate: 'Boshlanish sanasi',
|
||||
startTime: 'Boshlanish vaqti',
|
||||
endDate: 'Tugash sanasi',
|
||||
endTime: 'Tugash vaqti',
|
||||
prevYear: 'Oʻtgan yil',
|
||||
nextYear: 'Kelgusi yil',
|
||||
prevMonth: 'Oʻtgan oy',
|
||||
nextMonth: 'Kelgusi oy',
|
||||
year: 'Yil',
|
||||
month1: 'Yanvar',
|
||||
month2: 'Fevral',
|
||||
month3: 'Mart',
|
||||
month4: 'Aprel',
|
||||
month5: 'May',
|
||||
month6: 'Iyun',
|
||||
month7: 'Iyul',
|
||||
month8: 'Avgust',
|
||||
month9: 'Sentabr',
|
||||
month10: 'Oktabr',
|
||||
month11: 'Noyabr',
|
||||
month12: 'Dekabr',
|
||||
week: 'Hafta',
|
||||
weeks: {
|
||||
sun: 'Yak',
|
||||
mon: 'Dush',
|
||||
tue: 'Sesh',
|
||||
wed: 'Chor',
|
||||
thu: 'Pay',
|
||||
fri: 'Jum',
|
||||
sat: 'Shan'
|
||||
},
|
||||
months: {
|
||||
jan: 'Yan',
|
||||
feb: 'Fev',
|
||||
mar: 'Mar',
|
||||
apr: 'Apr',
|
||||
may: 'May',
|
||||
jun: 'Iyun',
|
||||
jul: 'Iyul',
|
||||
aug: 'Avg',
|
||||
sep: 'Sen',
|
||||
oct: 'Okt',
|
||||
nov: 'Noy',
|
||||
dec: 'Dek'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Yuklanmoqda',
|
||||
noMatch: 'Mos maʼlumot yoʻq',
|
||||
noData: 'Maʼlumot yoʻq',
|
||||
placeholder: 'Tanladizngiz'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Mos maʼlumot topilmadi',
|
||||
loading: 'Yuklanmoqda',
|
||||
placeholder: 'Tanlash',
|
||||
noData: 'Maʼlumot yoʻq'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Oʻtish',
|
||||
pagesize: '/sahifa',
|
||||
total: 'Barchasi {total} ta',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Xabar',
|
||||
confirm: 'Qabul qilish',
|
||||
cancel: 'Bekor qilish',
|
||||
error: 'Xatolik'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Oʻchirish tugmasini bosib oʻchiring',
|
||||
delete: 'Oʻchirish',
|
||||
preview: 'Oldin koʻrish',
|
||||
continue: 'Davom qilish'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Boʻsh',
|
||||
confirmFilter: 'Qabul qilish',
|
||||
resetFilter: 'Oldingi holatga qaytarish',
|
||||
clearFilter: 'Jami',
|
||||
sumText: 'Summasi'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Maʼlumot yoʻq'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Mos maʼlumot topilmadi',
|
||||
noData: 'Maʼlumot yoʻq',
|
||||
titles: ['1-jadval', '2-jadval'],
|
||||
filterPlaceholder: 'Kalit soʻzni kiriting',
|
||||
noCheckedFormat: '{total} ta element',
|
||||
hasCheckedFormat: '{checked}/{total} ta belgilandi'
|
||||
},
|
||||
image: {
|
||||
error: 'Xatolik'
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Orqaga'
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/vi.js
Normal file
120
src/locale/lang/vi.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Xóa'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Hiện tại',
|
||||
today: 'Hôm nay',
|
||||
cancel: 'Hủy',
|
||||
clear: 'Xóa',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Chọn ngày',
|
||||
selectTime: 'Chọn giờ',
|
||||
startDate: 'Ngày bắt đầu',
|
||||
startTime: 'Thời gian bắt đầu',
|
||||
endDate: 'Ngày kết thúc',
|
||||
endTime: 'Thời gian kết thúc',
|
||||
prevYear: 'Năm trước',
|
||||
nextYear: 'Năm tới',
|
||||
prevMonth: 'Tháng trước',
|
||||
nextMonth: 'Tháng tới',
|
||||
year: 'Năm',
|
||||
month1: 'Tháng 1',
|
||||
month2: 'Tháng 2',
|
||||
month3: 'Tháng 3',
|
||||
month4: 'Tháng 4',
|
||||
month5: 'Tháng 5',
|
||||
month6: 'Tháng 6',
|
||||
month7: 'Tháng 7',
|
||||
month8: 'Tháng 8',
|
||||
month9: 'Tháng 9',
|
||||
month10: 'Tháng 10',
|
||||
month11: 'Tháng 11',
|
||||
month12: 'Tháng 12',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'CN',
|
||||
mon: 'T2',
|
||||
tue: 'T3',
|
||||
wed: 'T4',
|
||||
thu: 'T5',
|
||||
fri: 'T6',
|
||||
sat: 'T7'
|
||||
},
|
||||
months: {
|
||||
jan: 'Th.1',
|
||||
feb: 'Th.2',
|
||||
mar: 'Th.3',
|
||||
apr: 'Th.4',
|
||||
may: 'Th.5',
|
||||
jun: 'Th.6',
|
||||
jul: 'Th.7',
|
||||
aug: 'Th.8',
|
||||
sep: 'Th.9',
|
||||
oct: 'Th.10',
|
||||
nov: 'Th.11',
|
||||
dec: 'Th.12'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Đang tải',
|
||||
noMatch: 'Dữ liệu không phù hợp',
|
||||
noData: 'Không tìm thấy dữ liệu',
|
||||
placeholder: 'Chọn'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Dữ liệu không phù hợp',
|
||||
loading: 'Đang tải',
|
||||
placeholder: 'Chọn',
|
||||
noData: 'Không tìm thấy dữ liệu'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Nhảy tới',
|
||||
pagesize: '/trang',
|
||||
total: 'Tổng {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Thông báo',
|
||||
confirm: 'OK',
|
||||
cancel: 'Hủy',
|
||||
error: 'Dữ liệu không hợp lệ'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Nhấn xoá để xoá',
|
||||
delete: 'Xóa',
|
||||
preview: 'Xem trước',
|
||||
continue: 'Tiếp tục'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Không có dữ liệu',
|
||||
confirmFilter: 'Xác nhận',
|
||||
resetFilter: 'Làm mới',
|
||||
clearFilter: 'Xóa hết',
|
||||
sumText: 'Tổng'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Không có dữ liệu'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Dữ liệu không phù hợp',
|
||||
noData: 'Không tìm thấy dữ liệu',
|
||||
titles: ['Danh sách 1', 'Danh sách 2'],
|
||||
filterPlaceholder: 'Nhập từ khóa',
|
||||
noCheckedFormat: '{total} mục',
|
||||
hasCheckedFormat: '{checked}/{total} đã chọn '
|
||||
},
|
||||
image: {
|
||||
error: 'LỖI'
|
||||
},
|
||||
pageHeader: {
|
||||
title: 'Quay lại'
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Ok',
|
||||
cancelButtonText: 'Huỷ'
|
||||
}
|
||||
}
|
||||
};
|
123
src/locale/lang/zh-CN.js
Normal file
123
src/locale/lang/zh-CN.js
Normal file
@@ -0,0 +1,123 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: '确定',
|
||||
clear: '清空'
|
||||
},
|
||||
datepicker: {
|
||||
now: '此刻',
|
||||
today: '今天',
|
||||
cancel: '取消',
|
||||
clear: '清空',
|
||||
confirm: '确定',
|
||||
selectDate: '选择日期',
|
||||
selectTime: '选择时间',
|
||||
startDate: '开始日期',
|
||||
startTime: '开始时间',
|
||||
endDate: '结束日期',
|
||||
endTime: '结束时间',
|
||||
prevYear: '前一年',
|
||||
nextYear: '后一年',
|
||||
prevMonth: '上个月',
|
||||
nextMonth: '下个月',
|
||||
year: '年',
|
||||
month1: '1 月',
|
||||
month2: '2 月',
|
||||
month3: '3 月',
|
||||
month4: '4 月',
|
||||
month5: '5 月',
|
||||
month6: '6 月',
|
||||
month7: '7 月',
|
||||
month8: '8 月',
|
||||
month9: '9 月',
|
||||
month10: '10 月',
|
||||
month11: '11 月',
|
||||
month12: '12 月',
|
||||
// week: '周次',
|
||||
weeks: {
|
||||
sun: '日',
|
||||
mon: '一',
|
||||
tue: '二',
|
||||
wed: '三',
|
||||
thu: '四',
|
||||
fri: '五',
|
||||
sat: '六'
|
||||
},
|
||||
months: {
|
||||
jan: '一月',
|
||||
feb: '二月',
|
||||
mar: '三月',
|
||||
apr: '四月',
|
||||
may: '五月',
|
||||
jun: '六月',
|
||||
jul: '七月',
|
||||
aug: '八月',
|
||||
sep: '九月',
|
||||
oct: '十月',
|
||||
nov: '十一月',
|
||||
dec: '十二月'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: '加载中',
|
||||
noMatch: '无匹配数据',
|
||||
noData: '无数据',
|
||||
placeholder: '请选择'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: '无匹配数据',
|
||||
loading: '加载中',
|
||||
placeholder: '请选择',
|
||||
noData: '暂无数据'
|
||||
},
|
||||
pagination: {
|
||||
goto: '前往',
|
||||
pagesize: '条/页',
|
||||
total: '共 {total} 条',
|
||||
pageClassifier: '页'
|
||||
},
|
||||
messagebox: {
|
||||
title: '提示',
|
||||
confirm: '确定',
|
||||
cancel: '取消',
|
||||
gotIt: '知道了',
|
||||
yes: '是',
|
||||
no: '否',
|
||||
error: '输入的数据不合法!'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: '按 delete 键可删除',
|
||||
delete: '删除',
|
||||
preview: '查看图片',
|
||||
continue: '继续上传'
|
||||
},
|
||||
table: {
|
||||
emptyText: '暂无数据',
|
||||
confirmFilter: '筛选',
|
||||
resetFilter: '重置',
|
||||
clearFilter: '全部',
|
||||
sumText: '合计'
|
||||
},
|
||||
tree: {
|
||||
emptyText: '暂无数据'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: '无匹配数据',
|
||||
noData: '无数据',
|
||||
titles: ['列表 1', '列表 2'],
|
||||
filterPlaceholder: '请输入搜索内容',
|
||||
noCheckedFormat: '共 {total} 项',
|
||||
hasCheckedFormat: '已选 {checked}/{total} 项'
|
||||
},
|
||||
image: {
|
||||
error: '加载失败'
|
||||
},
|
||||
pageHeader: {
|
||||
title: '返回'
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消'
|
||||
}
|
||||
}
|
||||
};
|
120
src/locale/lang/zh-TW.js
Normal file
120
src/locale/lang/zh-TW.js
Normal file
@@ -0,0 +1,120 @@
|
||||
export default {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: '確認',
|
||||
clear: '清空'
|
||||
},
|
||||
datepicker: {
|
||||
now: '現在',
|
||||
today: '今天',
|
||||
cancel: '取消',
|
||||
clear: '清空',
|
||||
confirm: '確認',
|
||||
selectDate: '選擇日期',
|
||||
selectTime: '選擇時間',
|
||||
startDate: '開始日期',
|
||||
startTime: '開始時間',
|
||||
endDate: '結束日期',
|
||||
endTime: '結束時間',
|
||||
prevYear: '前一年',
|
||||
nextYear: '後一年',
|
||||
prevMonth: '上個月',
|
||||
nextMonth: '下個月',
|
||||
year: '年',
|
||||
month1: '1 月',
|
||||
month2: '2 月',
|
||||
month3: '3 月',
|
||||
month4: '4 月',
|
||||
month5: '5 月',
|
||||
month6: '6 月',
|
||||
month7: '7 月',
|
||||
month8: '8 月',
|
||||
month9: '9 月',
|
||||
month10: '10 月',
|
||||
month11: '11 月',
|
||||
month12: '12 月',
|
||||
// week: '周次',
|
||||
weeks: {
|
||||
sun: '日',
|
||||
mon: '一',
|
||||
tue: '二',
|
||||
wed: '三',
|
||||
thu: '四',
|
||||
fri: '五',
|
||||
sat: '六'
|
||||
},
|
||||
months: {
|
||||
jan: '一月',
|
||||
feb: '二月',
|
||||
mar: '三月',
|
||||
apr: '四月',
|
||||
may: '五月',
|
||||
jun: '六月',
|
||||
jul: '七月',
|
||||
aug: '八月',
|
||||
sep: '九月',
|
||||
oct: '十月',
|
||||
nov: '十一月',
|
||||
dec: '十二月'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: '加載中',
|
||||
noMatch: '無匹配資料',
|
||||
noData: '無資料',
|
||||
placeholder: '請選擇'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: '無匹配資料',
|
||||
loading: '加載中',
|
||||
placeholder: '請選擇',
|
||||
noData: '無資料'
|
||||
},
|
||||
pagination: {
|
||||
goto: '前往',
|
||||
pagesize: '項/頁',
|
||||
total: '共 {total} 項',
|
||||
pageClassifier: '頁'
|
||||
},
|
||||
messagebox: {
|
||||
title: '提示',
|
||||
confirm: '確定',
|
||||
cancel: '取消',
|
||||
error: '輸入的資料不符規定!'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: '按 delete 鍵可刪除',
|
||||
delete: '刪除',
|
||||
preview: '查看圖片',
|
||||
continue: '繼續上傳'
|
||||
},
|
||||
table: {
|
||||
emptyText: '暫無資料',
|
||||
confirmFilter: '篩選',
|
||||
resetFilter: '重置',
|
||||
clearFilter: '全部',
|
||||
sumText: 'Sum' // to be translated
|
||||
},
|
||||
tree: {
|
||||
emptyText: '暫無資料'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: '無匹配資料',
|
||||
noData: '無資料',
|
||||
titles: ['List 1', 'List 2'], // to be translated
|
||||
filterPlaceholder: 'Enter keyword', // to be translated
|
||||
noCheckedFormat: '{total} items', // to be translated
|
||||
hasCheckedFormat: '{checked}/{total} checked' // to be translated
|
||||
},
|
||||
image: {
|
||||
error: '加載失敗'
|
||||
},
|
||||
pageHeader: {
|
||||
title: '返回'
|
||||
},
|
||||
popconfirm: {
|
||||
confirmButtonText: 'Yes', // to be translated
|
||||
cancelButtonText: 'No' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
33
src/mixins/emitter.js
Normal file
33
src/mixins/emitter.js
Normal file
@@ -0,0 +1,33 @@
|
||||
function broadcast(componentName, eventName, params) {
|
||||
this.$children.forEach(child => {
|
||||
var name = child.$options.componentName;
|
||||
|
||||
if (name === componentName) {
|
||||
child.$emit.apply(child, [eventName].concat(params));
|
||||
} else {
|
||||
broadcast.apply(child, [componentName, eventName].concat([params]));
|
||||
}
|
||||
});
|
||||
}
|
||||
export default {
|
||||
methods: {
|
||||
dispatch(componentName, eventName, params) {
|
||||
var parent = this.$parent || this.$root;
|
||||
var name = parent.$options.componentName;
|
||||
|
||||
while (parent && (!name || name !== componentName)) {
|
||||
parent = parent.$parent;
|
||||
|
||||
if (parent) {
|
||||
name = parent.$options.componentName;
|
||||
}
|
||||
}
|
||||
if (parent) {
|
||||
parent.$emit.apply(parent, [eventName].concat(params));
|
||||
}
|
||||
},
|
||||
broadcast(componentName, eventName, params) {
|
||||
broadcast.call(this, componentName, eventName, params);
|
||||
}
|
||||
}
|
||||
};
|
9
src/mixins/focus.js
Normal file
9
src/mixins/focus.js
Normal file
@@ -0,0 +1,9 @@
|
||||
export default function(ref) {
|
||||
return {
|
||||
methods: {
|
||||
focus() {
|
||||
this.$refs[ref].focus();
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
9
src/mixins/locale.js
Normal file
9
src/mixins/locale.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import { t } from 'element-ui/src/locale';
|
||||
|
||||
export default {
|
||||
methods: {
|
||||
t(...args) {
|
||||
return t.apply(this, args);
|
||||
}
|
||||
}
|
||||
};
|
54
src/mixins/migrating.js
Normal file
54
src/mixins/migrating.js
Normal file
@@ -0,0 +1,54 @@
|
||||
import { kebabCase } from 'element-ui/src/utils/util';
|
||||
/**
|
||||
* Show migrating guide in browser console.
|
||||
*
|
||||
* Usage:
|
||||
* import Migrating from 'element-ui/src/mixins/migrating';
|
||||
*
|
||||
* mixins: [Migrating]
|
||||
*
|
||||
* add getMigratingConfig method for your component.
|
||||
* getMigratingConfig() {
|
||||
* return {
|
||||
* props: {
|
||||
* 'allow-no-selection': 'allow-no-selection is removed.',
|
||||
* 'selection-mode': 'selection-mode is removed.'
|
||||
* },
|
||||
* events: {
|
||||
* selectionchange: 'selectionchange is renamed to selection-change.'
|
||||
* }
|
||||
* };
|
||||
* },
|
||||
*/
|
||||
export default {
|
||||
mounted() {
|
||||
if (process.env.NODE_ENV === 'production') return;
|
||||
if (!this.$vnode) return;
|
||||
const { props = {}, events = {} } = this.getMigratingConfig();
|
||||
const { data, componentOptions } = this.$vnode;
|
||||
const definedProps = data.attrs || {};
|
||||
const definedEvents = componentOptions.listeners || {};
|
||||
|
||||
for (let propName in definedProps) {
|
||||
propName = kebabCase(propName); // compatible with camel case
|
||||
if (props[propName]) {
|
||||
console.warn(`[Element Migrating][${this.$options.name}][Attribute]: ${props[propName]}`);
|
||||
}
|
||||
}
|
||||
|
||||
for (let eventName in definedEvents) {
|
||||
eventName = kebabCase(eventName); // compatible with camel case
|
||||
if (events[eventName]) {
|
||||
console.warn(`[Element Migrating][${this.$options.name}][Event]: ${events[eventName]}`);
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getMigratingConfig() {
|
||||
return {
|
||||
props: {},
|
||||
events: {}
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
77
src/transitions/collapse-transition.js
Normal file
77
src/transitions/collapse-transition.js
Normal file
@@ -0,0 +1,77 @@
|
||||
import { addClass, removeClass } from 'element-ui/src/utils/dom';
|
||||
|
||||
class Transition {
|
||||
beforeEnter(el) {
|
||||
addClass(el, 'collapse-transition');
|
||||
if (!el.dataset) el.dataset = {};
|
||||
|
||||
el.dataset.oldPaddingTop = el.style.paddingTop;
|
||||
el.dataset.oldPaddingBottom = el.style.paddingBottom;
|
||||
|
||||
el.style.height = '0';
|
||||
el.style.paddingTop = 0;
|
||||
el.style.paddingBottom = 0;
|
||||
}
|
||||
|
||||
enter(el) {
|
||||
el.dataset.oldOverflow = el.style.overflow;
|
||||
if (el.scrollHeight !== 0) {
|
||||
el.style.height = el.scrollHeight + 'px';
|
||||
el.style.paddingTop = el.dataset.oldPaddingTop;
|
||||
el.style.paddingBottom = el.dataset.oldPaddingBottom;
|
||||
} else {
|
||||
el.style.height = '';
|
||||
el.style.paddingTop = el.dataset.oldPaddingTop;
|
||||
el.style.paddingBottom = el.dataset.oldPaddingBottom;
|
||||
}
|
||||
|
||||
el.style.overflow = 'hidden';
|
||||
}
|
||||
|
||||
afterEnter(el) {
|
||||
// for safari: remove class then reset height is necessary
|
||||
removeClass(el, 'collapse-transition');
|
||||
el.style.height = '';
|
||||
el.style.overflow = el.dataset.oldOverflow;
|
||||
}
|
||||
|
||||
beforeLeave(el) {
|
||||
if (!el.dataset) el.dataset = {};
|
||||
el.dataset.oldPaddingTop = el.style.paddingTop;
|
||||
el.dataset.oldPaddingBottom = el.style.paddingBottom;
|
||||
el.dataset.oldOverflow = el.style.overflow;
|
||||
|
||||
el.style.height = el.scrollHeight + 'px';
|
||||
el.style.overflow = 'hidden';
|
||||
}
|
||||
|
||||
leave(el) {
|
||||
if (el.scrollHeight !== 0) {
|
||||
// for safari: add class after set height, or it will jump to zero height suddenly, weired
|
||||
addClass(el, 'collapse-transition');
|
||||
el.style.height = 0;
|
||||
el.style.paddingTop = 0;
|
||||
el.style.paddingBottom = 0;
|
||||
}
|
||||
}
|
||||
|
||||
afterLeave(el) {
|
||||
removeClass(el, 'collapse-transition');
|
||||
el.style.height = '';
|
||||
el.style.overflow = el.dataset.oldOverflow;
|
||||
el.style.paddingTop = el.dataset.oldPaddingTop;
|
||||
el.style.paddingBottom = el.dataset.oldPaddingBottom;
|
||||
}
|
||||
}
|
||||
|
||||
export default {
|
||||
name: 'ElCollapseTransition',
|
||||
functional: true,
|
||||
render(h, { children }) {
|
||||
const data = {
|
||||
on: new Transition()
|
||||
};
|
||||
|
||||
return h('transition', data, children);
|
||||
}
|
||||
};
|
27
src/utils/after-leave.js
Normal file
27
src/utils/after-leave.js
Normal file
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* Bind after-leave event for vue instance. Make sure after-leave is called in any browsers.
|
||||
*
|
||||
* @param {Vue} instance Vue instance.
|
||||
* @param {Function} callback callback of after-leave event
|
||||
* @param {Number} speed the speed of transition, default value is 300ms
|
||||
* @param {Boolean} once weather bind after-leave once. default value is false.
|
||||
*/
|
||||
export default function(instance, callback, speed = 300, once = false) {
|
||||
if (!instance || !callback) throw new Error('instance & callback is required');
|
||||
let called = false;
|
||||
const afterLeaveCallback = function() {
|
||||
if (called) return;
|
||||
called = true;
|
||||
if (callback) {
|
||||
callback.apply(null, arguments);
|
||||
}
|
||||
};
|
||||
if (once) {
|
||||
instance.$once('after-leave', afterLeaveCallback);
|
||||
} else {
|
||||
instance.$on('after-leave', afterLeaveCallback);
|
||||
}
|
||||
setTimeout(() => {
|
||||
afterLeaveCallback();
|
||||
}, speed + 100);
|
||||
};
|
90
src/utils/aria-dialog.js
Normal file
90
src/utils/aria-dialog.js
Normal file
@@ -0,0 +1,90 @@
|
||||
import Utils from './aria-utils';
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @desc Dialog object providing modal focus management.
|
||||
*
|
||||
* Assumptions: The element serving as the dialog container is present in the
|
||||
* DOM and hidden. The dialog container has role='dialog'.
|
||||
*
|
||||
* @param dialogId
|
||||
* The ID of the element serving as the dialog container.
|
||||
* @param focusAfterClosed
|
||||
* Either the DOM node or the ID of the DOM node to focus when the
|
||||
* dialog closes.
|
||||
* @param focusFirst
|
||||
* Optional parameter containing either the DOM node or the ID of the
|
||||
* DOM node to focus when the dialog opens. If not specified, the
|
||||
* first focusable element in the dialog will receive focus.
|
||||
*/
|
||||
var aria = aria || {};
|
||||
var tabEvent;
|
||||
|
||||
aria.Dialog = function(dialog, focusAfterClosed, focusFirst) {
|
||||
this.dialogNode = dialog;
|
||||
if (this.dialogNode === null || this.dialogNode.getAttribute('role') !== 'dialog') {
|
||||
throw new Error('Dialog() requires a DOM element with ARIA role of dialog.');
|
||||
}
|
||||
|
||||
if (typeof focusAfterClosed === 'string') {
|
||||
this.focusAfterClosed = document.getElementById(focusAfterClosed);
|
||||
} else if (typeof focusAfterClosed === 'object') {
|
||||
this.focusAfterClosed = focusAfterClosed;
|
||||
} else {
|
||||
this.focusAfterClosed = null;
|
||||
}
|
||||
|
||||
if (typeof focusFirst === 'string') {
|
||||
this.focusFirst = document.getElementById(focusFirst);
|
||||
} else if (typeof focusFirst === 'object') {
|
||||
this.focusFirst = focusFirst;
|
||||
} else {
|
||||
this.focusFirst = null;
|
||||
}
|
||||
|
||||
if (this.focusFirst) {
|
||||
this.focusFirst.focus();
|
||||
} else {
|
||||
Utils.focusFirstDescendant(this.dialogNode);
|
||||
}
|
||||
|
||||
this.lastFocus = document.activeElement;
|
||||
tabEvent = (e) => {
|
||||
this.trapFocus(e);
|
||||
};
|
||||
this.addListeners();
|
||||
};
|
||||
|
||||
aria.Dialog.prototype.addListeners = function() {
|
||||
document.addEventListener('focus', tabEvent, true);
|
||||
};
|
||||
|
||||
aria.Dialog.prototype.removeListeners = function() {
|
||||
document.removeEventListener('focus', tabEvent, true);
|
||||
};
|
||||
|
||||
aria.Dialog.prototype.closeDialog = function() {
|
||||
this.removeListeners();
|
||||
if (this.focusAfterClosed) {
|
||||
setTimeout(() => {
|
||||
this.focusAfterClosed.focus();
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
aria.Dialog.prototype.trapFocus = function(event) {
|
||||
if (Utils.IgnoreUtilFocusChanges) {
|
||||
return;
|
||||
}
|
||||
if (this.dialogNode.contains(event.target)) {
|
||||
this.lastFocus = event.target;
|
||||
} else {
|
||||
Utils.focusFirstDescendant(this.dialogNode);
|
||||
if (this.lastFocus === document.activeElement) {
|
||||
Utils.focusLastDescendant(this.dialogNode);
|
||||
}
|
||||
this.lastFocus = document.activeElement;
|
||||
}
|
||||
};
|
||||
|
||||
export default aria.Dialog;
|
122
src/utils/aria-utils.js
Normal file
122
src/utils/aria-utils.js
Normal file
@@ -0,0 +1,122 @@
|
||||
var aria = aria || {};
|
||||
|
||||
aria.Utils = aria.Utils || {};
|
||||
|
||||
/**
|
||||
* @desc Set focus on descendant nodes until the first focusable element is
|
||||
* found.
|
||||
* @param element
|
||||
* DOM node for which to find the first focusable descendant.
|
||||
* @returns
|
||||
* true if a focusable element is found and focus is set.
|
||||
*/
|
||||
aria.Utils.focusFirstDescendant = function(element) {
|
||||
for (var i = 0; i < element.childNodes.length; i++) {
|
||||
var child = element.childNodes[i];
|
||||
if (aria.Utils.attemptFocus(child) || aria.Utils.focusFirstDescendant(child)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
/**
|
||||
* @desc Find the last descendant node that is focusable.
|
||||
* @param element
|
||||
* DOM node for which to find the last focusable descendant.
|
||||
* @returns
|
||||
* true if a focusable element is found and focus is set.
|
||||
*/
|
||||
|
||||
aria.Utils.focusLastDescendant = function(element) {
|
||||
for (var i = element.childNodes.length - 1; i >= 0; i--) {
|
||||
var child = element.childNodes[i];
|
||||
if (aria.Utils.attemptFocus(child) || aria.Utils.focusLastDescendant(child)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
/**
|
||||
* @desc Set Attempt to set focus on the current node.
|
||||
* @param element
|
||||
* The node to attempt to focus on.
|
||||
* @returns
|
||||
* true if element is focused.
|
||||
*/
|
||||
aria.Utils.attemptFocus = function(element) {
|
||||
if (!aria.Utils.isFocusable(element)) {
|
||||
return false;
|
||||
}
|
||||
aria.Utils.IgnoreUtilFocusChanges = true;
|
||||
try {
|
||||
element.focus();
|
||||
} catch (e) {
|
||||
}
|
||||
aria.Utils.IgnoreUtilFocusChanges = false;
|
||||
return (document.activeElement === element);
|
||||
};
|
||||
|
||||
aria.Utils.isFocusable = function(element) {
|
||||
if (element.tabIndex > 0 || (element.tabIndex === 0 && element.getAttribute('tabIndex') !== null)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (element.disabled) {
|
||||
return false;
|
||||
}
|
||||
|
||||
switch (element.nodeName) {
|
||||
case 'A':
|
||||
return !!element.href && element.rel !== 'ignore';
|
||||
case 'INPUT':
|
||||
return element.type !== 'hidden' && element.type !== 'file';
|
||||
case 'BUTTON':
|
||||
case 'SELECT':
|
||||
case 'TEXTAREA':
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* 触发一个事件
|
||||
* mouseenter, mouseleave, mouseover, keyup, change, click 等
|
||||
* @param {Element} elm
|
||||
* @param {String} name
|
||||
* @param {*} opts
|
||||
*/
|
||||
aria.Utils.triggerEvent = function(elm, name, ...opts) {
|
||||
let eventName;
|
||||
|
||||
if (/^mouse|click/.test(name)) {
|
||||
eventName = 'MouseEvents';
|
||||
} else if (/^key/.test(name)) {
|
||||
eventName = 'KeyboardEvent';
|
||||
} else {
|
||||
eventName = 'HTMLEvents';
|
||||
}
|
||||
const evt = document.createEvent(eventName);
|
||||
|
||||
evt.initEvent(name, ...opts);
|
||||
elm.dispatchEvent
|
||||
? elm.dispatchEvent(evt)
|
||||
: elm.fireEvent('on' + name, evt);
|
||||
|
||||
return elm;
|
||||
};
|
||||
|
||||
aria.Utils.keys = {
|
||||
tab: 9,
|
||||
enter: 13,
|
||||
space: 32,
|
||||
left: 37,
|
||||
up: 38,
|
||||
right: 39,
|
||||
down: 40,
|
||||
esc: 27
|
||||
};
|
||||
|
||||
export default aria.Utils;
|
76
src/utils/clickoutside.js
Normal file
76
src/utils/clickoutside.js
Normal file
@@ -0,0 +1,76 @@
|
||||
import Vue from 'vue';
|
||||
import { on } from 'element-ui/src/utils/dom';
|
||||
|
||||
const nodeList = [];
|
||||
const ctx = '@@clickoutsideContext';
|
||||
|
||||
let startClick;
|
||||
let seed = 0;
|
||||
|
||||
!Vue.prototype.$isServer && on(document, 'mousedown', e => (startClick = e));
|
||||
|
||||
!Vue.prototype.$isServer && on(document, 'mouseup', e => {
|
||||
nodeList.forEach(node => node[ctx].documentHandler(e, startClick));
|
||||
});
|
||||
|
||||
function createDocumentHandler(el, binding, vnode) {
|
||||
return function(mouseup = {}, mousedown = {}) {
|
||||
if (!vnode ||
|
||||
!vnode.context ||
|
||||
!mouseup.target ||
|
||||
!mousedown.target ||
|
||||
el.contains(mouseup.target) ||
|
||||
el.contains(mousedown.target) ||
|
||||
el === mouseup.target ||
|
||||
(vnode.context.popperElm &&
|
||||
(vnode.context.popperElm.contains(mouseup.target) ||
|
||||
vnode.context.popperElm.contains(mousedown.target)))) return;
|
||||
|
||||
if (binding.expression &&
|
||||
el[ctx].methodName &&
|
||||
vnode.context[el[ctx].methodName]) {
|
||||
vnode.context[el[ctx].methodName]();
|
||||
} else {
|
||||
el[ctx].bindingFn && el[ctx].bindingFn();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* v-clickoutside
|
||||
* @desc 点击元素外面才会触发的事件
|
||||
* @example
|
||||
* ```vue
|
||||
* <div v-element-clickoutside="handleClose">
|
||||
* ```
|
||||
*/
|
||||
export default {
|
||||
bind(el, binding, vnode) {
|
||||
nodeList.push(el);
|
||||
const id = seed++;
|
||||
el[ctx] = {
|
||||
id,
|
||||
documentHandler: createDocumentHandler(el, binding, vnode),
|
||||
methodName: binding.expression,
|
||||
bindingFn: binding.value
|
||||
};
|
||||
},
|
||||
|
||||
update(el, binding, vnode) {
|
||||
el[ctx].documentHandler = createDocumentHandler(el, binding, vnode);
|
||||
el[ctx].methodName = binding.expression;
|
||||
el[ctx].bindingFn = binding.value;
|
||||
},
|
||||
|
||||
unbind(el) {
|
||||
let len = nodeList.length;
|
||||
|
||||
for (let i = 0; i < len; i++) {
|
||||
if (nodeList[i][ctx].id === el[ctx].id) {
|
||||
nodeList.splice(i, 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
delete el[ctx];
|
||||
}
|
||||
};
|
292
src/utils/date-util.js
Normal file
292
src/utils/date-util.js
Normal file
@@ -0,0 +1,292 @@
|
||||
import fecha from 'element-ui/src/utils/date';
|
||||
import { t } from 'element-ui/src/locale';
|
||||
|
||||
const weeks = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'];
|
||||
const months = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec'];
|
||||
|
||||
const newArray = function(start, end) {
|
||||
let result = [];
|
||||
for (let i = start; i <= end; i++) {
|
||||
result.push(i);
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
export const getI18nSettings = () => {
|
||||
return {
|
||||
dayNamesShort: weeks.map(week => t(`el.datepicker.weeks.${ week }`)),
|
||||
dayNames: weeks.map(week => t(`el.datepicker.weeks.${ week }`)),
|
||||
monthNamesShort: months.map(month => t(`el.datepicker.months.${ month }`)),
|
||||
monthNames: months.map((month, index) => t(`el.datepicker.month${ index + 1 }`)),
|
||||
amPm: ['am', 'pm']
|
||||
};
|
||||
};
|
||||
|
||||
export const toDate = function(date) {
|
||||
return isDate(date) ? new Date(date) : null;
|
||||
};
|
||||
|
||||
export const isDate = function(date) {
|
||||
if (date === null || date === undefined) return false;
|
||||
if (isNaN(new Date(date).getTime())) return false;
|
||||
if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
|
||||
return true;
|
||||
};
|
||||
|
||||
export const isDateObject = function(val) {
|
||||
return val instanceof Date;
|
||||
};
|
||||
|
||||
export const formatDate = function(date, format) {
|
||||
date = toDate(date);
|
||||
if (!date) return '';
|
||||
return fecha.format(date, format || 'yyyy-MM-dd', getI18nSettings());
|
||||
};
|
||||
|
||||
export const parseDate = function(string, format) {
|
||||
return fecha.parse(string, format || 'yyyy-MM-dd', getI18nSettings());
|
||||
};
|
||||
|
||||
export const getDayCountOfMonth = function(year, month) {
|
||||
if (month === 3 || month === 5 || month === 8 || month === 10) {
|
||||
return 30;
|
||||
}
|
||||
|
||||
if (month === 1) {
|
||||
if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
|
||||
return 29;
|
||||
} else {
|
||||
return 28;
|
||||
}
|
||||
}
|
||||
|
||||
return 31;
|
||||
};
|
||||
|
||||
export const getDayCountOfYear = function(year) {
|
||||
const isLeapYear = year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0);
|
||||
return isLeapYear ? 366 : 365;
|
||||
};
|
||||
|
||||
export const getFirstDayOfMonth = function(date) {
|
||||
const temp = new Date(date.getTime());
|
||||
temp.setDate(1);
|
||||
return temp.getDay();
|
||||
};
|
||||
|
||||
// see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
|
||||
// {prev, next} Date should work for Daylight Saving Time
|
||||
// Adding 24 * 60 * 60 * 1000 does not work in the above scenario
|
||||
export const prevDate = function(date, amount = 1) {
|
||||
return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
|
||||
};
|
||||
|
||||
export const nextDate = function(date, amount = 1) {
|
||||
return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
|
||||
};
|
||||
|
||||
export const getStartDateOfMonth = function(year, month) {
|
||||
const result = new Date(year, month, 1);
|
||||
const day = result.getDay();
|
||||
|
||||
if (day === 0) {
|
||||
return prevDate(result, 7);
|
||||
} else {
|
||||
return prevDate(result, day);
|
||||
}
|
||||
};
|
||||
|
||||
export const getWeekNumber = function(src) {
|
||||
if (!isDate(src)) return null;
|
||||
const date = new Date(src.getTime());
|
||||
date.setHours(0, 0, 0, 0);
|
||||
// Thursday in current week decides the year.
|
||||
date.setDate(date.getDate() + 3 - (date.getDay() + 6) % 7);
|
||||
// January 4 is always in week 1.
|
||||
const week1 = new Date(date.getFullYear(), 0, 4);
|
||||
// Adjust to Thursday in week 1 and count number of weeks from date to week 1.
|
||||
// Rounding should be fine for Daylight Saving Time. Its shift should never be more than 12 hours.
|
||||
return 1 + Math.round(((date.getTime() - week1.getTime()) / 86400000 - 3 + (week1.getDay() + 6) % 7) / 7);
|
||||
};
|
||||
|
||||
export const getRangeHours = function(ranges) {
|
||||
const hours = [];
|
||||
let disabledHours = [];
|
||||
|
||||
(ranges || []).forEach(range => {
|
||||
const value = range.map(date => date.getHours());
|
||||
|
||||
disabledHours = disabledHours.concat(newArray(value[0], value[1]));
|
||||
});
|
||||
|
||||
if (disabledHours.length) {
|
||||
for (let i = 0; i < 24; i++) {
|
||||
hours[i] = disabledHours.indexOf(i) === -1;
|
||||
}
|
||||
} else {
|
||||
for (let i = 0; i < 24; i++) {
|
||||
hours[i] = false;
|
||||
}
|
||||
}
|
||||
|
||||
return hours;
|
||||
};
|
||||
|
||||
export const getPrevMonthLastDays = (date, amount) => {
|
||||
if (amount <= 0) return [];
|
||||
const temp = new Date(date.getTime());
|
||||
temp.setDate(0);
|
||||
const lastDay = temp.getDate();
|
||||
return range(amount).map((_, index) => lastDay - (amount - index - 1));
|
||||
};
|
||||
|
||||
export const getMonthDays = (date) => {
|
||||
const temp = new Date(date.getFullYear(), date.getMonth() + 1, 0);
|
||||
const days = temp.getDate();
|
||||
return range(days).map((_, index) => index + 1);
|
||||
};
|
||||
|
||||
function setRangeData(arr, start, end, value) {
|
||||
for (let i = start; i < end; i++) {
|
||||
arr[i] = value;
|
||||
}
|
||||
}
|
||||
|
||||
export const getRangeMinutes = function(ranges, hour) {
|
||||
const minutes = new Array(60);
|
||||
|
||||
if (ranges.length > 0) {
|
||||
ranges.forEach(range => {
|
||||
const start = range[0];
|
||||
const end = range[1];
|
||||
const startHour = start.getHours();
|
||||
const startMinute = start.getMinutes();
|
||||
const endHour = end.getHours();
|
||||
const endMinute = end.getMinutes();
|
||||
if (startHour === hour && endHour !== hour) {
|
||||
setRangeData(minutes, startMinute, 60, true);
|
||||
} else if (startHour === hour && endHour === hour) {
|
||||
setRangeData(minutes, startMinute, endMinute + 1, true);
|
||||
} else if (startHour !== hour && endHour === hour) {
|
||||
setRangeData(minutes, 0, endMinute + 1, true);
|
||||
} else if (startHour < hour && endHour > hour) {
|
||||
setRangeData(minutes, 0, 60, true);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
setRangeData(minutes, 0, 60, true);
|
||||
}
|
||||
return minutes;
|
||||
};
|
||||
|
||||
export const range = function(n) {
|
||||
// see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
|
||||
return Array.apply(null, {length: n}).map((_, n) => n);
|
||||
};
|
||||
|
||||
export const modifyDate = function(date, y, m, d) {
|
||||
return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
|
||||
};
|
||||
|
||||
export const modifyTime = function(date, h, m, s, ms) {
|
||||
return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, ms === undefined ? date.getMilliseconds() : ms);
|
||||
};
|
||||
|
||||
export const modifyWithTimeString = (date, time) => {
|
||||
if (date == null || !time) {
|
||||
return date;
|
||||
}
|
||||
time = parseDate(time, 'HH:mm:ss.SSS');
|
||||
return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds(), time.getMilliseconds());
|
||||
};
|
||||
|
||||
export const clearTime = function(date) {
|
||||
return new Date(date.getFullYear(), date.getMonth(), date.getDate());
|
||||
};
|
||||
|
||||
export const clearMilliseconds = function(date) {
|
||||
return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
|
||||
};
|
||||
|
||||
export const limitTimeRange = function(date, ranges, format = 'HH:mm:ss') {
|
||||
// TODO: refactory a more elegant solution
|
||||
if (ranges.length === 0) return date;
|
||||
const normalizeDate = date => fecha.parse(fecha.format(date, format), format);
|
||||
const ndate = normalizeDate(date);
|
||||
const nranges = ranges.map(range => range.map(normalizeDate));
|
||||
if (nranges.some(nrange => ndate >= nrange[0] && ndate <= nrange[1])) return date;
|
||||
|
||||
let minDate = nranges[0][0];
|
||||
let maxDate = nranges[0][0];
|
||||
|
||||
nranges.forEach(nrange => {
|
||||
minDate = new Date(Math.min(nrange[0], minDate));
|
||||
maxDate = new Date(Math.max(nrange[1], minDate));
|
||||
});
|
||||
|
||||
const ret = ndate < minDate ? minDate : maxDate;
|
||||
// preserve Year/Month/Date
|
||||
return modifyDate(
|
||||
ret,
|
||||
date.getFullYear(),
|
||||
date.getMonth(),
|
||||
date.getDate()
|
||||
);
|
||||
};
|
||||
|
||||
export const timeWithinRange = function(date, selectableRange, format) {
|
||||
const limitedDate = limitTimeRange(date, selectableRange, format);
|
||||
return limitedDate.getTime() === date.getTime();
|
||||
};
|
||||
|
||||
export const changeYearMonthAndClampDate = function(date, year, month) {
|
||||
// clamp date to the number of days in `year`, `month`
|
||||
// eg: (2010-1-31, 2010, 2) => 2010-2-28
|
||||
const monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
|
||||
return modifyDate(date, year, month, monthDate);
|
||||
};
|
||||
|
||||
export const prevMonth = function(date) {
|
||||
const year = date.getFullYear();
|
||||
const month = date.getMonth();
|
||||
return month === 0
|
||||
? changeYearMonthAndClampDate(date, year - 1, 11)
|
||||
: changeYearMonthAndClampDate(date, year, month - 1);
|
||||
};
|
||||
|
||||
export const nextMonth = function(date) {
|
||||
const year = date.getFullYear();
|
||||
const month = date.getMonth();
|
||||
return month === 11
|
||||
? changeYearMonthAndClampDate(date, year + 1, 0)
|
||||
: changeYearMonthAndClampDate(date, year, month + 1);
|
||||
};
|
||||
|
||||
export const prevYear = function(date, amount = 1) {
|
||||
const year = date.getFullYear();
|
||||
const month = date.getMonth();
|
||||
return changeYearMonthAndClampDate(date, year - amount, month);
|
||||
};
|
||||
|
||||
export const nextYear = function(date, amount = 1) {
|
||||
const year = date.getFullYear();
|
||||
const month = date.getMonth();
|
||||
return changeYearMonthAndClampDate(date, year + amount, month);
|
||||
};
|
||||
|
||||
export const extractDateFormat = function(format) {
|
||||
return format
|
||||
.replace(/\W?m{1,2}|\W?ZZ/g, '')
|
||||
.replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '')
|
||||
.trim();
|
||||
};
|
||||
|
||||
export const extractTimeFormat = function(format) {
|
||||
return format
|
||||
.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '')
|
||||
.trim();
|
||||
};
|
||||
|
||||
export const validateRangeInOneMonth = function(start, end) {
|
||||
return (start.getMonth() === end.getMonth()) && (start.getFullYear() === end.getFullYear());
|
||||
};
|
368
src/utils/date.js
Normal file
368
src/utils/date.js
Normal file
@@ -0,0 +1,368 @@
|
||||
/* Modified from https://github.com/taylorhakes/fecha
|
||||
*
|
||||
* The MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2015 Taylor Hakes
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/*eslint-disable*/
|
||||
// 把 YYYY-MM-DD 改成了 yyyy-MM-dd
|
||||
(function (main) {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Parse or format dates
|
||||
* @class fecha
|
||||
*/
|
||||
var fecha = {};
|
||||
var token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
|
||||
var twoDigits = '\\d\\d?';
|
||||
var threeDigits = '\\d{3}';
|
||||
var fourDigits = '\\d{4}';
|
||||
var word = '[^\\s]+';
|
||||
var literal = /\[([^]*?)\]/gm;
|
||||
var noop = function () {
|
||||
};
|
||||
|
||||
function regexEscape(str) {
|
||||
return str.replace( /[|\\{()[^$+*?.-]/g, '\\$&');
|
||||
}
|
||||
|
||||
function shorten(arr, sLen) {
|
||||
var newArr = [];
|
||||
for (var i = 0, len = arr.length; i < len; i++) {
|
||||
newArr.push(arr[i].substr(0, sLen));
|
||||
}
|
||||
return newArr;
|
||||
}
|
||||
|
||||
function monthUpdate(arrName) {
|
||||
return function (d, v, i18n) {
|
||||
var index = i18n[arrName].indexOf(v.charAt(0).toUpperCase() + v.substr(1).toLowerCase());
|
||||
if (~index) {
|
||||
d.month = index;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function pad(val, len) {
|
||||
val = String(val);
|
||||
len = len || 2;
|
||||
while (val.length < len) {
|
||||
val = '0' + val;
|
||||
}
|
||||
return val;
|
||||
}
|
||||
|
||||
var dayNames = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
|
||||
var monthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
||||
var monthNamesShort = shorten(monthNames, 3);
|
||||
var dayNamesShort = shorten(dayNames, 3);
|
||||
fecha.i18n = {
|
||||
dayNamesShort: dayNamesShort,
|
||||
dayNames: dayNames,
|
||||
monthNamesShort: monthNamesShort,
|
||||
monthNames: monthNames,
|
||||
amPm: ['am', 'pm'],
|
||||
DoFn: function DoFn(D) {
|
||||
return D + ['th', 'st', 'nd', 'rd'][D % 10 > 3 ? 0 : (D - D % 10 !== 10) * D % 10];
|
||||
}
|
||||
};
|
||||
|
||||
var formatFlags = {
|
||||
D: function(dateObj) {
|
||||
return dateObj.getDay();
|
||||
},
|
||||
DD: function(dateObj) {
|
||||
return pad(dateObj.getDay());
|
||||
},
|
||||
Do: function(dateObj, i18n) {
|
||||
return i18n.DoFn(dateObj.getDate());
|
||||
},
|
||||
d: function(dateObj) {
|
||||
return dateObj.getDate();
|
||||
},
|
||||
dd: function(dateObj) {
|
||||
return pad(dateObj.getDate());
|
||||
},
|
||||
ddd: function(dateObj, i18n) {
|
||||
return i18n.dayNamesShort[dateObj.getDay()];
|
||||
},
|
||||
dddd: function(dateObj, i18n) {
|
||||
return i18n.dayNames[dateObj.getDay()];
|
||||
},
|
||||
M: function(dateObj) {
|
||||
return dateObj.getMonth() + 1;
|
||||
},
|
||||
MM: function(dateObj) {
|
||||
return pad(dateObj.getMonth() + 1);
|
||||
},
|
||||
MMM: function(dateObj, i18n) {
|
||||
return i18n.monthNamesShort[dateObj.getMonth()];
|
||||
},
|
||||
MMMM: function(dateObj, i18n) {
|
||||
return i18n.monthNames[dateObj.getMonth()];
|
||||
},
|
||||
yy: function(dateObj) {
|
||||
return pad(String(dateObj.getFullYear()), 4).substr(2);
|
||||
},
|
||||
yyyy: function(dateObj) {
|
||||
return pad(dateObj.getFullYear(), 4);
|
||||
},
|
||||
h: function(dateObj) {
|
||||
return dateObj.getHours() % 12 || 12;
|
||||
},
|
||||
hh: function(dateObj) {
|
||||
return pad(dateObj.getHours() % 12 || 12);
|
||||
},
|
||||
H: function(dateObj) {
|
||||
return dateObj.getHours();
|
||||
},
|
||||
HH: function(dateObj) {
|
||||
return pad(dateObj.getHours());
|
||||
},
|
||||
m: function(dateObj) {
|
||||
return dateObj.getMinutes();
|
||||
},
|
||||
mm: function(dateObj) {
|
||||
return pad(dateObj.getMinutes());
|
||||
},
|
||||
s: function(dateObj) {
|
||||
return dateObj.getSeconds();
|
||||
},
|
||||
ss: function(dateObj) {
|
||||
return pad(dateObj.getSeconds());
|
||||
},
|
||||
S: function(dateObj) {
|
||||
return Math.round(dateObj.getMilliseconds() / 100);
|
||||
},
|
||||
SS: function(dateObj) {
|
||||
return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
|
||||
},
|
||||
SSS: function(dateObj) {
|
||||
return pad(dateObj.getMilliseconds(), 3);
|
||||
},
|
||||
a: function(dateObj, i18n) {
|
||||
return dateObj.getHours() < 12 ? i18n.amPm[0] : i18n.amPm[1];
|
||||
},
|
||||
A: function(dateObj, i18n) {
|
||||
return dateObj.getHours() < 12 ? i18n.amPm[0].toUpperCase() : i18n.amPm[1].toUpperCase();
|
||||
},
|
||||
ZZ: function(dateObj) {
|
||||
var o = dateObj.getTimezoneOffset();
|
||||
return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4);
|
||||
}
|
||||
};
|
||||
|
||||
var parseFlags = {
|
||||
d: [twoDigits, function (d, v) {
|
||||
d.day = v;
|
||||
}],
|
||||
Do: [twoDigits + word, function (d, v) {
|
||||
d.day = parseInt(v, 10);
|
||||
}],
|
||||
M: [twoDigits, function (d, v) {
|
||||
d.month = v - 1;
|
||||
}],
|
||||
yy: [twoDigits, function (d, v) {
|
||||
var da = new Date(), cent = +('' + da.getFullYear()).substr(0, 2);
|
||||
d.year = '' + (v > 68 ? cent - 1 : cent) + v;
|
||||
}],
|
||||
h: [twoDigits, function (d, v) {
|
||||
d.hour = v;
|
||||
}],
|
||||
m: [twoDigits, function (d, v) {
|
||||
d.minute = v;
|
||||
}],
|
||||
s: [twoDigits, function (d, v) {
|
||||
d.second = v;
|
||||
}],
|
||||
yyyy: [fourDigits, function (d, v) {
|
||||
d.year = v;
|
||||
}],
|
||||
S: ['\\d', function (d, v) {
|
||||
d.millisecond = v * 100;
|
||||
}],
|
||||
SS: ['\\d{2}', function (d, v) {
|
||||
d.millisecond = v * 10;
|
||||
}],
|
||||
SSS: [threeDigits, function (d, v) {
|
||||
d.millisecond = v;
|
||||
}],
|
||||
D: [twoDigits, noop],
|
||||
ddd: [word, noop],
|
||||
MMM: [word, monthUpdate('monthNamesShort')],
|
||||
MMMM: [word, monthUpdate('monthNames')],
|
||||
a: [word, function (d, v, i18n) {
|
||||
var val = v.toLowerCase();
|
||||
if (val === i18n.amPm[0]) {
|
||||
d.isPm = false;
|
||||
} else if (val === i18n.amPm[1]) {
|
||||
d.isPm = true;
|
||||
}
|
||||
}],
|
||||
ZZ: ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z', function (d, v) {
|
||||
var parts = (v + '').match(/([+-]|\d\d)/gi), minutes;
|
||||
|
||||
if (parts) {
|
||||
minutes = +(parts[1] * 60) + parseInt(parts[2], 10);
|
||||
d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;
|
||||
}
|
||||
}]
|
||||
};
|
||||
parseFlags.dd = parseFlags.d;
|
||||
parseFlags.dddd = parseFlags.ddd;
|
||||
parseFlags.DD = parseFlags.D;
|
||||
parseFlags.mm = parseFlags.m;
|
||||
parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h;
|
||||
parseFlags.MM = parseFlags.M;
|
||||
parseFlags.ss = parseFlags.s;
|
||||
parseFlags.A = parseFlags.a;
|
||||
|
||||
|
||||
// Some common format strings
|
||||
fecha.masks = {
|
||||
default: 'ddd MMM dd yyyy HH:mm:ss',
|
||||
shortDate: 'M/D/yy',
|
||||
mediumDate: 'MMM d, yyyy',
|
||||
longDate: 'MMMM d, yyyy',
|
||||
fullDate: 'dddd, MMMM d, yyyy',
|
||||
shortTime: 'HH:mm',
|
||||
mediumTime: 'HH:mm:ss',
|
||||
longTime: 'HH:mm:ss.SSS'
|
||||
};
|
||||
|
||||
/***
|
||||
* Format a date
|
||||
* @method format
|
||||
* @param {Date|number} dateObj
|
||||
* @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
|
||||
*/
|
||||
fecha.format = function (dateObj, mask, i18nSettings) {
|
||||
var i18n = i18nSettings || fecha.i18n;
|
||||
|
||||
if (typeof dateObj === 'number') {
|
||||
dateObj = new Date(dateObj);
|
||||
}
|
||||
|
||||
if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) {
|
||||
throw new Error('Invalid Date in fecha.format');
|
||||
}
|
||||
|
||||
mask = fecha.masks[mask] || mask || fecha.masks['default'];
|
||||
|
||||
var literals = [];
|
||||
|
||||
// Make literals inactive by replacing them with ??
|
||||
mask = mask.replace(literal, function($0, $1) {
|
||||
literals.push($1);
|
||||
return '@@@';
|
||||
});
|
||||
// Apply formatting rules
|
||||
mask = mask.replace(token, function ($0) {
|
||||
return $0 in formatFlags ? formatFlags[$0](dateObj, i18n) : $0.slice(1, $0.length - 1);
|
||||
});
|
||||
// Inline literal values back into the formatted value
|
||||
return mask.replace(/@@@/g, function() {
|
||||
return literals.shift();
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Parse a date string into an object, changes - into /
|
||||
* @method parse
|
||||
* @param {string} dateStr Date string
|
||||
* @param {string} format Date parse format
|
||||
* @returns {Date|boolean}
|
||||
*/
|
||||
fecha.parse = function (dateStr, format, i18nSettings) {
|
||||
var i18n = i18nSettings || fecha.i18n;
|
||||
|
||||
if (typeof format !== 'string') {
|
||||
throw new Error('Invalid format in fecha.parse');
|
||||
}
|
||||
|
||||
format = fecha.masks[format] || format;
|
||||
|
||||
// Avoid regular expression denial of service, fail early for really long strings
|
||||
// https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
|
||||
if (dateStr.length > 1000) {
|
||||
return null;
|
||||
}
|
||||
|
||||
var dateInfo = {};
|
||||
var parseInfo = [];
|
||||
var literals = [];
|
||||
format = format.replace(literal, function($0, $1) {
|
||||
literals.push($1);
|
||||
return '@@@';
|
||||
});
|
||||
var newFormat = regexEscape(format).replace(token, function ($0) {
|
||||
if (parseFlags[$0]) {
|
||||
var info = parseFlags[$0];
|
||||
parseInfo.push(info[1]);
|
||||
return '(' + info[0] + ')';
|
||||
}
|
||||
|
||||
return $0;
|
||||
});
|
||||
newFormat = newFormat.replace(/@@@/g, function() {
|
||||
return literals.shift();
|
||||
});
|
||||
var matches = dateStr.match(new RegExp(newFormat, 'i'));
|
||||
if (!matches) {
|
||||
return null;
|
||||
}
|
||||
|
||||
for (var i = 1; i < matches.length; i++) {
|
||||
parseInfo[i - 1](dateInfo, matches[i], i18n);
|
||||
}
|
||||
|
||||
var today = new Date();
|
||||
if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) {
|
||||
dateInfo.hour = +dateInfo.hour + 12;
|
||||
} else if (dateInfo.isPm === false && +dateInfo.hour === 12) {
|
||||
dateInfo.hour = 0;
|
||||
}
|
||||
|
||||
var date;
|
||||
if (dateInfo.timezoneOffset != null) {
|
||||
dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset;
|
||||
date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
|
||||
dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0));
|
||||
} else {
|
||||
date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1,
|
||||
dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0);
|
||||
}
|
||||
return date;
|
||||
};
|
||||
|
||||
/* istanbul ignore next */
|
||||
if (typeof module !== 'undefined' && module.exports) {
|
||||
module.exports = fecha;
|
||||
} else if (typeof define === 'function' && define.amd) {
|
||||
define(function () {
|
||||
return fecha;
|
||||
});
|
||||
} else {
|
||||
main.fecha = fecha;
|
||||
}
|
||||
})(this);
|
227
src/utils/dom.js
Normal file
227
src/utils/dom.js
Normal file
@@ -0,0 +1,227 @@
|
||||
/* istanbul ignore next */
|
||||
|
||||
import Vue from 'vue';
|
||||
|
||||
const isServer = Vue.prototype.$isServer;
|
||||
const SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
|
||||
const MOZ_HACK_REGEXP = /^moz([A-Z])/;
|
||||
const ieVersion = isServer ? 0 : Number(document.documentMode);
|
||||
|
||||
/* istanbul ignore next */
|
||||
const trim = function(string) {
|
||||
return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
|
||||
};
|
||||
/* istanbul ignore next */
|
||||
const camelCase = function(name) {
|
||||
return name.replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {
|
||||
return offset ? letter.toUpperCase() : letter;
|
||||
}).replace(MOZ_HACK_REGEXP, 'Moz$1');
|
||||
};
|
||||
|
||||
/* istanbul ignore next */
|
||||
export const on = (function() {
|
||||
if (!isServer && document.addEventListener) {
|
||||
return function(element, event, handler) {
|
||||
if (element && event && handler) {
|
||||
element.addEventListener(event, handler, false);
|
||||
}
|
||||
};
|
||||
} else {
|
||||
return function(element, event, handler) {
|
||||
if (element && event && handler) {
|
||||
element.attachEvent('on' + event, handler);
|
||||
}
|
||||
};
|
||||
}
|
||||
})();
|
||||
|
||||
/* istanbul ignore next */
|
||||
export const off = (function() {
|
||||
if (!isServer && document.removeEventListener) {
|
||||
return function(element, event, handler) {
|
||||
if (element && event) {
|
||||
element.removeEventListener(event, handler, false);
|
||||
}
|
||||
};
|
||||
} else {
|
||||
return function(element, event, handler) {
|
||||
if (element && event) {
|
||||
element.detachEvent('on' + event, handler);
|
||||
}
|
||||
};
|
||||
}
|
||||
})();
|
||||
|
||||
/* istanbul ignore next */
|
||||
export const once = function(el, event, fn) {
|
||||
var listener = function() {
|
||||
if (fn) {
|
||||
fn.apply(this, arguments);
|
||||
}
|
||||
off(el, event, listener);
|
||||
};
|
||||
on(el, event, listener);
|
||||
};
|
||||
|
||||
/* istanbul ignore next */
|
||||
export function hasClass(el, cls) {
|
||||
if (!el || !cls) return false;
|
||||
if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
|
||||
if (el.classList) {
|
||||
return el.classList.contains(cls);
|
||||
} else {
|
||||
return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
|
||||
}
|
||||
};
|
||||
|
||||
/* istanbul ignore next */
|
||||
export function addClass(el, cls) {
|
||||
if (!el) return;
|
||||
var curClass = el.className;
|
||||
var classes = (cls || '').split(' ');
|
||||
|
||||
for (var i = 0, j = classes.length; i < j; i++) {
|
||||
var clsName = classes[i];
|
||||
if (!clsName) continue;
|
||||
|
||||
if (el.classList) {
|
||||
el.classList.add(clsName);
|
||||
} else if (!hasClass(el, clsName)) {
|
||||
curClass += ' ' + clsName;
|
||||
}
|
||||
}
|
||||
if (!el.classList) {
|
||||
el.className = curClass;
|
||||
}
|
||||
};
|
||||
|
||||
/* istanbul ignore next */
|
||||
export function removeClass(el, cls) {
|
||||
if (!el || !cls) return;
|
||||
var classes = cls.split(' ');
|
||||
var curClass = ' ' + el.className + ' ';
|
||||
|
||||
for (var i = 0, j = classes.length; i < j; i++) {
|
||||
var clsName = classes[i];
|
||||
if (!clsName) continue;
|
||||
|
||||
if (el.classList) {
|
||||
el.classList.remove(clsName);
|
||||
} else if (hasClass(el, clsName)) {
|
||||
curClass = curClass.replace(' ' + clsName + ' ', ' ');
|
||||
}
|
||||
}
|
||||
if (!el.classList) {
|
||||
el.className = trim(curClass);
|
||||
}
|
||||
};
|
||||
|
||||
/* istanbul ignore next */
|
||||
export const getStyle = ieVersion < 9 ? function(element, styleName) {
|
||||
if (isServer) return;
|
||||
if (!element || !styleName) return null;
|
||||
styleName = camelCase(styleName);
|
||||
if (styleName === 'float') {
|
||||
styleName = 'styleFloat';
|
||||
}
|
||||
try {
|
||||
switch (styleName) {
|
||||
case 'opacity':
|
||||
try {
|
||||
return element.filters.item('alpha').opacity / 100;
|
||||
} catch (e) {
|
||||
return 1.0;
|
||||
}
|
||||
default:
|
||||
return (element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null);
|
||||
}
|
||||
} catch (e) {
|
||||
return element.style[styleName];
|
||||
}
|
||||
} : function(element, styleName) {
|
||||
if (isServer) return;
|
||||
if (!element || !styleName) return null;
|
||||
styleName = camelCase(styleName);
|
||||
if (styleName === 'float') {
|
||||
styleName = 'cssFloat';
|
||||
}
|
||||
try {
|
||||
var computed = document.defaultView.getComputedStyle(element, '');
|
||||
return element.style[styleName] || computed ? computed[styleName] : null;
|
||||
} catch (e) {
|
||||
return element.style[styleName];
|
||||
}
|
||||
};
|
||||
|
||||
/* istanbul ignore next */
|
||||
export function setStyle(element, styleName, value) {
|
||||
if (!element || !styleName) return;
|
||||
|
||||
if (typeof styleName === 'object') {
|
||||
for (var prop in styleName) {
|
||||
if (styleName.hasOwnProperty(prop)) {
|
||||
setStyle(element, prop, styleName[prop]);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
styleName = camelCase(styleName);
|
||||
if (styleName === 'opacity' && ieVersion < 9) {
|
||||
element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
|
||||
} else {
|
||||
element.style[styleName] = value;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const isScroll = (el, vertical) => {
|
||||
if (isServer) return;
|
||||
|
||||
const determinedDirection = vertical !== null || vertical !== undefined;
|
||||
const overflow = determinedDirection
|
||||
? vertical
|
||||
? getStyle(el, 'overflow-y')
|
||||
: getStyle(el, 'overflow-x')
|
||||
: getStyle(el, 'overflow');
|
||||
|
||||
return overflow.match(/(scroll|auto)/);
|
||||
};
|
||||
|
||||
export const getScrollContainer = (el, vertical) => {
|
||||
if (isServer) return;
|
||||
|
||||
let parent = el;
|
||||
while (parent) {
|
||||
if ([window, document, document.documentElement].includes(parent)) {
|
||||
return window;
|
||||
}
|
||||
if (isScroll(parent, vertical)) {
|
||||
return parent;
|
||||
}
|
||||
parent = parent.parentNode;
|
||||
}
|
||||
|
||||
return parent;
|
||||
};
|
||||
|
||||
export const isInContainer = (el, container) => {
|
||||
if (isServer || !el || !container) return false;
|
||||
|
||||
const elRect = el.getBoundingClientRect();
|
||||
let containerRect;
|
||||
|
||||
if ([window, document, document.documentElement, null, undefined].includes(container)) {
|
||||
containerRect = {
|
||||
top: 0,
|
||||
right: window.innerWidth,
|
||||
bottom: window.innerHeight,
|
||||
left: 0
|
||||
};
|
||||
} else {
|
||||
containerRect = container.getBoundingClientRect();
|
||||
}
|
||||
|
||||
return elRect.top < containerRect.bottom &&
|
||||
elRect.bottom > containerRect.top &&
|
||||
elRect.right > containerRect.left &&
|
||||
elRect.left < containerRect.right;
|
||||
};
|
14
src/utils/menu/aria-menubar.js
Normal file
14
src/utils/menu/aria-menubar.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import MenuItem from './aria-menuitem';
|
||||
|
||||
const Menu = function(domNode) {
|
||||
this.domNode = domNode;
|
||||
this.init();
|
||||
};
|
||||
|
||||
Menu.prototype.init = function() {
|
||||
let menuChildren = this.domNode.childNodes;
|
||||
[].filter.call(menuChildren, child => child.nodeType === 1).forEach(child => {
|
||||
new MenuItem(child); // eslint-disable-line
|
||||
});
|
||||
};
|
||||
export default Menu;
|
49
src/utils/menu/aria-menuitem.js
Normal file
49
src/utils/menu/aria-menuitem.js
Normal file
@@ -0,0 +1,49 @@
|
||||
import Utils from '../aria-utils';
|
||||
import SubMenu from './aria-submenu';
|
||||
|
||||
const MenuItem = function(domNode) {
|
||||
this.domNode = domNode;
|
||||
this.submenu = null;
|
||||
this.init();
|
||||
};
|
||||
|
||||
MenuItem.prototype.init = function() {
|
||||
this.domNode.setAttribute('tabindex', '0');
|
||||
let menuChild = this.domNode.querySelector('.el-menu');
|
||||
if (menuChild) {
|
||||
this.submenu = new SubMenu(this, menuChild);
|
||||
}
|
||||
this.addListeners();
|
||||
};
|
||||
|
||||
MenuItem.prototype.addListeners = function() {
|
||||
const keys = Utils.keys;
|
||||
this.domNode.addEventListener('keydown', event => {
|
||||
let prevDef = false;
|
||||
switch (event.keyCode) {
|
||||
case keys.down:
|
||||
Utils.triggerEvent(event.currentTarget, 'mouseenter');
|
||||
this.submenu && this.submenu.gotoSubIndex(0);
|
||||
prevDef = true;
|
||||
break;
|
||||
case keys.up:
|
||||
Utils.triggerEvent(event.currentTarget, 'mouseenter');
|
||||
this.submenu && this.submenu.gotoSubIndex(this.submenu.subMenuItems.length - 1);
|
||||
prevDef = true;
|
||||
break;
|
||||
case keys.tab:
|
||||
Utils.triggerEvent(event.currentTarget, 'mouseleave');
|
||||
break;
|
||||
case keys.enter:
|
||||
case keys.space:
|
||||
prevDef = true;
|
||||
event.currentTarget.click();
|
||||
break;
|
||||
}
|
||||
if (prevDef) {
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
export default MenuItem;
|
59
src/utils/menu/aria-submenu.js
Normal file
59
src/utils/menu/aria-submenu.js
Normal file
@@ -0,0 +1,59 @@
|
||||
import Utils from '../aria-utils';
|
||||
|
||||
const SubMenu = function(parent, domNode) {
|
||||
this.domNode = domNode;
|
||||
this.parent = parent;
|
||||
this.subMenuItems = [];
|
||||
this.subIndex = 0;
|
||||
this.init();
|
||||
};
|
||||
|
||||
SubMenu.prototype.init = function() {
|
||||
this.subMenuItems = this.domNode.querySelectorAll('li');
|
||||
this.addListeners();
|
||||
};
|
||||
|
||||
SubMenu.prototype.gotoSubIndex = function(idx) {
|
||||
if (idx === this.subMenuItems.length) {
|
||||
idx = 0;
|
||||
} else if (idx < 0) {
|
||||
idx = this.subMenuItems.length - 1;
|
||||
}
|
||||
this.subMenuItems[idx].focus();
|
||||
this.subIndex = idx;
|
||||
};
|
||||
|
||||
SubMenu.prototype.addListeners = function() {
|
||||
const keys = Utils.keys;
|
||||
const parentNode = this.parent.domNode;
|
||||
Array.prototype.forEach.call(this.subMenuItems, el => {
|
||||
el.addEventListener('keydown', event => {
|
||||
let prevDef = false;
|
||||
switch (event.keyCode) {
|
||||
case keys.down:
|
||||
this.gotoSubIndex(this.subIndex + 1);
|
||||
prevDef = true;
|
||||
break;
|
||||
case keys.up:
|
||||
this.gotoSubIndex(this.subIndex - 1);
|
||||
prevDef = true;
|
||||
break;
|
||||
case keys.tab:
|
||||
Utils.triggerEvent(parentNode, 'mouseleave');
|
||||
break;
|
||||
case keys.enter:
|
||||
case keys.space:
|
||||
prevDef = true;
|
||||
event.currentTarget.click();
|
||||
break;
|
||||
}
|
||||
if (prevDef) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
}
|
||||
return false;
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
export default SubMenu;
|
15
src/utils/merge.js
Normal file
15
src/utils/merge.js
Normal file
@@ -0,0 +1,15 @@
|
||||
export default function(target) {
|
||||
for (let i = 1, j = arguments.length; i < j; i++) {
|
||||
let source = arguments[i] || {};
|
||||
for (let prop in source) {
|
||||
if (source.hasOwnProperty(prop)) {
|
||||
let value = source[prop];
|
||||
if (value !== undefined) {
|
||||
target[prop] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return target;
|
||||
};
|
1276
src/utils/popper.js
Normal file
1276
src/utils/popper.js
Normal file
File diff suppressed because it is too large
Load Diff
218
src/utils/popup/index.js
Normal file
218
src/utils/popup/index.js
Normal file
@@ -0,0 +1,218 @@
|
||||
import Vue from 'vue';
|
||||
import merge from 'element-ui/src/utils/merge';
|
||||
import PopupManager from 'element-ui/src/utils/popup/popup-manager';
|
||||
import getScrollBarWidth from '../scrollbar-width';
|
||||
import { getStyle, addClass, removeClass, hasClass } from '../dom';
|
||||
|
||||
let idSeed = 1;
|
||||
|
||||
let scrollBarWidth;
|
||||
|
||||
export default {
|
||||
props: {
|
||||
visible: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
openDelay: {},
|
||||
closeDelay: {},
|
||||
zIndex: {},
|
||||
modal: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
modalFade: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
modalClass: {},
|
||||
modalAppendToBody: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
lockScroll: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
closeOnPressEscape: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
closeOnClickModal: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
|
||||
beforeMount() {
|
||||
this._popupId = 'popup-' + idSeed++;
|
||||
PopupManager.register(this._popupId, this);
|
||||
},
|
||||
|
||||
beforeDestroy() {
|
||||
PopupManager.deregister(this._popupId);
|
||||
PopupManager.closeModal(this._popupId);
|
||||
|
||||
this.restoreBodyStyle();
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
opened: false,
|
||||
bodyPaddingRight: null,
|
||||
computedBodyPaddingRight: 0,
|
||||
withoutHiddenClass: true,
|
||||
rendered: false
|
||||
};
|
||||
},
|
||||
|
||||
watch: {
|
||||
visible(val) {
|
||||
if (val) {
|
||||
if (this._opening) return;
|
||||
if (!this.rendered) {
|
||||
this.rendered = true;
|
||||
Vue.nextTick(() => {
|
||||
this.open();
|
||||
});
|
||||
} else {
|
||||
this.open();
|
||||
}
|
||||
} else {
|
||||
this.close();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
open(options) {
|
||||
if (!this.rendered) {
|
||||
this.rendered = true;
|
||||
}
|
||||
|
||||
const props = merge({}, this.$props || this, options);
|
||||
|
||||
if (this._closeTimer) {
|
||||
clearTimeout(this._closeTimer);
|
||||
this._closeTimer = null;
|
||||
}
|
||||
clearTimeout(this._openTimer);
|
||||
|
||||
const openDelay = Number(props.openDelay);
|
||||
if (openDelay > 0) {
|
||||
this._openTimer = setTimeout(() => {
|
||||
this._openTimer = null;
|
||||
this.doOpen(props);
|
||||
}, openDelay);
|
||||
} else {
|
||||
this.doOpen(props);
|
||||
}
|
||||
},
|
||||
|
||||
doOpen(props) {
|
||||
if (this.$isServer) return;
|
||||
if (this.willOpen && !this.willOpen()) return;
|
||||
if (this.opened) return;
|
||||
|
||||
this._opening = true;
|
||||
|
||||
const dom = this.$el;
|
||||
|
||||
const modal = props.modal;
|
||||
|
||||
const zIndex = props.zIndex;
|
||||
if (zIndex) {
|
||||
PopupManager.zIndex = zIndex;
|
||||
}
|
||||
|
||||
if (modal) {
|
||||
if (this._closing) {
|
||||
PopupManager.closeModal(this._popupId);
|
||||
this._closing = false;
|
||||
}
|
||||
PopupManager.openModal(this._popupId, PopupManager.nextZIndex(), this.modalAppendToBody ? undefined : dom, props.modalClass, props.modalFade);
|
||||
if (props.lockScroll) {
|
||||
this.withoutHiddenClass = !hasClass(document.body, 'el-popup-parent--hidden');
|
||||
if (this.withoutHiddenClass) {
|
||||
this.bodyPaddingRight = document.body.style.paddingRight;
|
||||
this.computedBodyPaddingRight = parseInt(getStyle(document.body, 'paddingRight'), 10);
|
||||
}
|
||||
scrollBarWidth = getScrollBarWidth();
|
||||
let bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
|
||||
let bodyOverflowY = getStyle(document.body, 'overflowY');
|
||||
if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === 'scroll') && this.withoutHiddenClass) {
|
||||
document.body.style.paddingRight = this.computedBodyPaddingRight + scrollBarWidth + 'px';
|
||||
}
|
||||
addClass(document.body, 'el-popup-parent--hidden');
|
||||
}
|
||||
}
|
||||
|
||||
if (getComputedStyle(dom).position === 'static') {
|
||||
dom.style.position = 'absolute';
|
||||
}
|
||||
|
||||
dom.style.zIndex = PopupManager.nextZIndex();
|
||||
this.opened = true;
|
||||
|
||||
this.onOpen && this.onOpen();
|
||||
|
||||
this.doAfterOpen();
|
||||
},
|
||||
|
||||
doAfterOpen() {
|
||||
this._opening = false;
|
||||
},
|
||||
|
||||
close() {
|
||||
if (this.willClose && !this.willClose()) return;
|
||||
|
||||
if (this._openTimer !== null) {
|
||||
clearTimeout(this._openTimer);
|
||||
this._openTimer = null;
|
||||
}
|
||||
clearTimeout(this._closeTimer);
|
||||
|
||||
const closeDelay = Number(this.closeDelay);
|
||||
|
||||
if (closeDelay > 0) {
|
||||
this._closeTimer = setTimeout(() => {
|
||||
this._closeTimer = null;
|
||||
this.doClose();
|
||||
}, closeDelay);
|
||||
} else {
|
||||
this.doClose();
|
||||
}
|
||||
},
|
||||
|
||||
doClose() {
|
||||
this._closing = true;
|
||||
|
||||
this.onClose && this.onClose();
|
||||
|
||||
if (this.lockScroll) {
|
||||
setTimeout(this.restoreBodyStyle, 200);
|
||||
}
|
||||
|
||||
this.opened = false;
|
||||
|
||||
this.doAfterClose();
|
||||
},
|
||||
|
||||
doAfterClose() {
|
||||
PopupManager.closeModal(this._popupId);
|
||||
this._closing = false;
|
||||
},
|
||||
|
||||
restoreBodyStyle() {
|
||||
if (this.modal && this.withoutHiddenClass) {
|
||||
document.body.style.paddingRight = this.bodyPaddingRight;
|
||||
removeClass(document.body, 'el-popup-parent--hidden');
|
||||
}
|
||||
this.withoutHiddenClass = true;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export {
|
||||
PopupManager
|
||||
};
|
194
src/utils/popup/popup-manager.js
Normal file
194
src/utils/popup/popup-manager.js
Normal file
@@ -0,0 +1,194 @@
|
||||
import Vue from 'vue';
|
||||
import { addClass, removeClass } from 'element-ui/src/utils/dom';
|
||||
|
||||
let hasModal = false;
|
||||
let hasInitZIndex = false;
|
||||
let zIndex;
|
||||
|
||||
const getModal = function() {
|
||||
if (Vue.prototype.$isServer) return;
|
||||
let modalDom = PopupManager.modalDom;
|
||||
if (modalDom) {
|
||||
hasModal = true;
|
||||
} else {
|
||||
hasModal = false;
|
||||
modalDom = document.createElement('div');
|
||||
PopupManager.modalDom = modalDom;
|
||||
|
||||
modalDom.addEventListener('touchmove', function(event) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
});
|
||||
|
||||
modalDom.addEventListener('click', function() {
|
||||
PopupManager.doOnModalClick && PopupManager.doOnModalClick();
|
||||
});
|
||||
}
|
||||
|
||||
return modalDom;
|
||||
};
|
||||
|
||||
const instances = {};
|
||||
|
||||
const PopupManager = {
|
||||
modalFade: true,
|
||||
|
||||
getInstance: function(id) {
|
||||
return instances[id];
|
||||
},
|
||||
|
||||
register: function(id, instance) {
|
||||
if (id && instance) {
|
||||
instances[id] = instance;
|
||||
}
|
||||
},
|
||||
|
||||
deregister: function(id) {
|
||||
if (id) {
|
||||
instances[id] = null;
|
||||
delete instances[id];
|
||||
}
|
||||
},
|
||||
|
||||
nextZIndex: function() {
|
||||
return PopupManager.zIndex++;
|
||||
},
|
||||
|
||||
modalStack: [],
|
||||
|
||||
doOnModalClick: function() {
|
||||
const topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1];
|
||||
if (!topItem) return;
|
||||
|
||||
const instance = PopupManager.getInstance(topItem.id);
|
||||
if (instance && instance.closeOnClickModal) {
|
||||
instance.close();
|
||||
}
|
||||
},
|
||||
|
||||
openModal: function(id, zIndex, dom, modalClass, modalFade) {
|
||||
if (Vue.prototype.$isServer) return;
|
||||
if (!id || zIndex === undefined) return;
|
||||
this.modalFade = modalFade;
|
||||
|
||||
const modalStack = this.modalStack;
|
||||
|
||||
for (let i = 0, j = modalStack.length; i < j; i++) {
|
||||
const item = modalStack[i];
|
||||
if (item.id === id) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
const modalDom = getModal();
|
||||
|
||||
addClass(modalDom, 'v-modal');
|
||||
if (this.modalFade && !hasModal) {
|
||||
addClass(modalDom, 'v-modal-enter');
|
||||
}
|
||||
if (modalClass) {
|
||||
let classArr = modalClass.trim().split(/\s+/);
|
||||
classArr.forEach(item => addClass(modalDom, item));
|
||||
}
|
||||
setTimeout(() => {
|
||||
removeClass(modalDom, 'v-modal-enter');
|
||||
}, 200);
|
||||
|
||||
if (dom && dom.parentNode && dom.parentNode.nodeType !== 11) {
|
||||
dom.parentNode.appendChild(modalDom);
|
||||
} else {
|
||||
document.body.appendChild(modalDom);
|
||||
}
|
||||
|
||||
if (zIndex) {
|
||||
modalDom.style.zIndex = zIndex;
|
||||
}
|
||||
modalDom.tabIndex = 0;
|
||||
modalDom.style.display = '';
|
||||
|
||||
this.modalStack.push({ id: id, zIndex: zIndex, modalClass: modalClass });
|
||||
},
|
||||
|
||||
closeModal: function(id) {
|
||||
const modalStack = this.modalStack;
|
||||
const modalDom = getModal();
|
||||
|
||||
if (modalStack.length > 0) {
|
||||
const topItem = modalStack[modalStack.length - 1];
|
||||
if (topItem.id === id) {
|
||||
if (topItem.modalClass) {
|
||||
let classArr = topItem.modalClass.trim().split(/\s+/);
|
||||
classArr.forEach(item => removeClass(modalDom, item));
|
||||
}
|
||||
|
||||
modalStack.pop();
|
||||
if (modalStack.length > 0) {
|
||||
modalDom.style.zIndex = modalStack[modalStack.length - 1].zIndex;
|
||||
}
|
||||
} else {
|
||||
for (let i = modalStack.length - 1; i >= 0; i--) {
|
||||
if (modalStack[i].id === id) {
|
||||
modalStack.splice(i, 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (modalStack.length === 0) {
|
||||
if (this.modalFade) {
|
||||
addClass(modalDom, 'v-modal-leave');
|
||||
}
|
||||
setTimeout(() => {
|
||||
if (modalStack.length === 0) {
|
||||
if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom);
|
||||
modalDom.style.display = 'none';
|
||||
PopupManager.modalDom = undefined;
|
||||
}
|
||||
removeClass(modalDom, 'v-modal-leave');
|
||||
}, 200);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Object.defineProperty(PopupManager, 'zIndex', {
|
||||
configurable: true,
|
||||
get() {
|
||||
if (!hasInitZIndex) {
|
||||
zIndex = zIndex || (Vue.prototype.$ELEMENT || {}).zIndex || 2000;
|
||||
hasInitZIndex = true;
|
||||
}
|
||||
return zIndex;
|
||||
},
|
||||
set(value) {
|
||||
zIndex = value;
|
||||
}
|
||||
});
|
||||
|
||||
const getTopPopup = function() {
|
||||
if (Vue.prototype.$isServer) return;
|
||||
if (PopupManager.modalStack.length > 0) {
|
||||
const topPopup = PopupManager.modalStack[PopupManager.modalStack.length - 1];
|
||||
if (!topPopup) return;
|
||||
const instance = PopupManager.getInstance(topPopup.id);
|
||||
|
||||
return instance;
|
||||
}
|
||||
};
|
||||
|
||||
if (!Vue.prototype.$isServer) {
|
||||
// handle `esc` key when the popup is shown
|
||||
window.addEventListener('keydown', function(event) {
|
||||
if (event.keyCode === 27) {
|
||||
const topPopup = getTopPopup();
|
||||
|
||||
if (topPopup && topPopup.closeOnPressEscape) {
|
||||
topPopup.handleClose
|
||||
? topPopup.handleClose()
|
||||
: (topPopup.handleAction ? topPopup.handleAction('cancel') : topPopup.close());
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
export default PopupManager;
|
35
src/utils/resize-event.js
Normal file
35
src/utils/resize-event.js
Normal file
@@ -0,0 +1,35 @@
|
||||
import ResizeObserver from 'resize-observer-polyfill';
|
||||
|
||||
const isServer = typeof window === 'undefined';
|
||||
|
||||
/* istanbul ignore next */
|
||||
const resizeHandler = function(entries) {
|
||||
for (let entry of entries) {
|
||||
const listeners = entry.target.__resizeListeners__ || [];
|
||||
if (listeners.length) {
|
||||
listeners.forEach(fn => {
|
||||
fn();
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/* istanbul ignore next */
|
||||
export const addResizeListener = function(element, fn) {
|
||||
if (isServer) return;
|
||||
if (!element.__resizeListeners__) {
|
||||
element.__resizeListeners__ = [];
|
||||
element.__ro__ = new ResizeObserver(resizeHandler);
|
||||
element.__ro__.observe(element);
|
||||
}
|
||||
element.__resizeListeners__.push(fn);
|
||||
};
|
||||
|
||||
/* istanbul ignore next */
|
||||
export const removeResizeListener = function(element, fn) {
|
||||
if (!element || !element.__resizeListeners__) return;
|
||||
element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1);
|
||||
if (!element.__resizeListeners__.length) {
|
||||
element.__ro__.disconnect();
|
||||
}
|
||||
};
|
27
src/utils/scroll-into-view.js
Normal file
27
src/utils/scroll-into-view.js
Normal file
@@ -0,0 +1,27 @@
|
||||
import Vue from 'vue';
|
||||
|
||||
export default function scrollIntoView(container, selected) {
|
||||
if (Vue.prototype.$isServer) return;
|
||||
|
||||
if (!selected) {
|
||||
container.scrollTop = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
const offsetParents = [];
|
||||
let pointer = selected.offsetParent;
|
||||
while (pointer && container !== pointer && container.contains(pointer)) {
|
||||
offsetParents.push(pointer);
|
||||
pointer = pointer.offsetParent;
|
||||
}
|
||||
const top = selected.offsetTop + offsetParents.reduce((prev, curr) => (prev + curr.offsetTop), 0);
|
||||
const bottom = top + selected.offsetHeight;
|
||||
const viewRectTop = container.scrollTop;
|
||||
const viewRectBottom = viewRectTop + container.clientHeight;
|
||||
|
||||
if (top < viewRectTop) {
|
||||
container.scrollTop = top;
|
||||
} else if (bottom > viewRectBottom) {
|
||||
container.scrollTop = bottom - container.clientHeight;
|
||||
}
|
||||
}
|
29
src/utils/scrollbar-width.js
Normal file
29
src/utils/scrollbar-width.js
Normal file
@@ -0,0 +1,29 @@
|
||||
import Vue from 'vue';
|
||||
|
||||
let scrollBarWidth;
|
||||
|
||||
export default function() {
|
||||
if (Vue.prototype.$isServer) return 0;
|
||||
if (scrollBarWidth !== undefined) return scrollBarWidth;
|
||||
|
||||
const outer = document.createElement('div');
|
||||
outer.className = 'el-scrollbar__wrap';
|
||||
outer.style.visibility = 'hidden';
|
||||
outer.style.width = '100px';
|
||||
outer.style.position = 'absolute';
|
||||
outer.style.top = '-9999px';
|
||||
document.body.appendChild(outer);
|
||||
|
||||
const widthNoScroll = outer.offsetWidth;
|
||||
outer.style.overflow = 'scroll';
|
||||
|
||||
const inner = document.createElement('div');
|
||||
inner.style.width = '100%';
|
||||
outer.appendChild(inner);
|
||||
|
||||
const widthWithScroll = inner.offsetWidth;
|
||||
outer.parentNode.removeChild(outer);
|
||||
scrollBarWidth = widthNoScroll - widthWithScroll;
|
||||
|
||||
return scrollBarWidth;
|
||||
};
|
7
src/utils/shared.js
Normal file
7
src/utils/shared.js
Normal file
@@ -0,0 +1,7 @@
|
||||
export function isDef(val) {
|
||||
return val !== undefined && val !== null;
|
||||
}
|
||||
export function isKorean(text) {
|
||||
const reg = /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;
|
||||
return reg.test(text);
|
||||
}
|
24
src/utils/types.js
Normal file
24
src/utils/types.js
Normal file
@@ -0,0 +1,24 @@
|
||||
export function isString(obj) {
|
||||
return Object.prototype.toString.call(obj) === '[object String]';
|
||||
}
|
||||
|
||||
export function isObject(obj) {
|
||||
return Object.prototype.toString.call(obj) === '[object Object]';
|
||||
}
|
||||
|
||||
export function isHtmlElement(node) {
|
||||
return node && node.nodeType === Node.ELEMENT_NODE;
|
||||
}
|
||||
|
||||
export const isFunction = (functionToCheck) => {
|
||||
var getType = {};
|
||||
return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
|
||||
};
|
||||
|
||||
export const isUndefined = (val)=> {
|
||||
return val === void 0;
|
||||
};
|
||||
|
||||
export const isDefined = (val) => {
|
||||
return val !== undefined && val !== null;
|
||||
};
|
241
src/utils/util.js
Normal file
241
src/utils/util.js
Normal file
@@ -0,0 +1,241 @@
|
||||
import Vue from 'vue';
|
||||
import { isString, isObject } from 'element-ui/src/utils/types';
|
||||
|
||||
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
||||
|
||||
export function noop() {};
|
||||
|
||||
export function hasOwn(obj, key) {
|
||||
return hasOwnProperty.call(obj, key);
|
||||
};
|
||||
|
||||
function extend(to, _from) {
|
||||
for (let key in _from) {
|
||||
to[key] = _from[key];
|
||||
}
|
||||
return to;
|
||||
};
|
||||
|
||||
export function toObject(arr) {
|
||||
var res = {};
|
||||
for (let i = 0; i < arr.length; i++) {
|
||||
if (arr[i]) {
|
||||
extend(res, arr[i]);
|
||||
}
|
||||
}
|
||||
return res;
|
||||
};
|
||||
|
||||
export const getValueByPath = function(object, prop) {
|
||||
prop = prop || '';
|
||||
const paths = prop.split('.');
|
||||
let current = object;
|
||||
let result = null;
|
||||
for (let i = 0, j = paths.length; i < j; i++) {
|
||||
const path = paths[i];
|
||||
if (!current) break;
|
||||
|
||||
if (i === j - 1) {
|
||||
result = current[path];
|
||||
break;
|
||||
}
|
||||
current = current[path];
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
export function getPropByPath(obj, path, strict) {
|
||||
let tempObj = obj;
|
||||
path = path.replace(/\[(\w+)\]/g, '.$1');
|
||||
path = path.replace(/^\./, '');
|
||||
|
||||
let keyArr = path.split('.');
|
||||
let i = 0;
|
||||
for (let len = keyArr.length; i < len - 1; ++i) {
|
||||
if (!tempObj && !strict) break;
|
||||
let key = keyArr[i];
|
||||
if (key in tempObj) {
|
||||
tempObj = tempObj[key];
|
||||
} else {
|
||||
if (strict) {
|
||||
throw new Error('please transfer a valid prop path to form item!');
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return {
|
||||
o: tempObj,
|
||||
k: keyArr[i],
|
||||
v: tempObj ? tempObj[keyArr[i]] : null
|
||||
};
|
||||
};
|
||||
|
||||
export const generateId = function() {
|
||||
return Math.floor(Math.random() * 10000);
|
||||
};
|
||||
|
||||
export const valueEquals = (a, b) => {
|
||||
// see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
|
||||
if (a === b) return true;
|
||||
if (!(a instanceof Array)) return false;
|
||||
if (!(b instanceof Array)) return false;
|
||||
if (a.length !== b.length) return false;
|
||||
for (let i = 0; i !== a.length; ++i) {
|
||||
if (a[i] !== b[i]) return false;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
export const escapeRegexpString = (value = '') => String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
|
||||
|
||||
// TODO: use native Array.find, Array.findIndex when IE support is dropped
|
||||
export const arrayFindIndex = function(arr, pred) {
|
||||
for (let i = 0; i !== arr.length; ++i) {
|
||||
if (pred(arr[i])) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
};
|
||||
|
||||
export const arrayFind = function(arr, pred) {
|
||||
const idx = arrayFindIndex(arr, pred);
|
||||
return idx !== -1 ? arr[idx] : undefined;
|
||||
};
|
||||
|
||||
// coerce truthy value to array
|
||||
export const coerceTruthyValueToArray = function(val) {
|
||||
if (Array.isArray(val)) {
|
||||
return val;
|
||||
} else if (val) {
|
||||
return [val];
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
};
|
||||
|
||||
export const isIE = function() {
|
||||
return !Vue.prototype.$isServer && !isNaN(Number(document.documentMode));
|
||||
};
|
||||
|
||||
export const isEdge = function() {
|
||||
return !Vue.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
|
||||
};
|
||||
|
||||
export const isFirefox = function() {
|
||||
return !Vue.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
|
||||
};
|
||||
|
||||
export const autoprefixer = function(style) {
|
||||
if (typeof style !== 'object') return style;
|
||||
const rules = ['transform', 'transition', 'animation'];
|
||||
const prefixes = ['ms-', 'webkit-'];
|
||||
rules.forEach(rule => {
|
||||
const value = style[rule];
|
||||
if (rule && value) {
|
||||
prefixes.forEach(prefix => {
|
||||
style[prefix + rule] = value;
|
||||
});
|
||||
}
|
||||
});
|
||||
return style;
|
||||
};
|
||||
|
||||
export const kebabCase = function(str) {
|
||||
const hyphenateRE = /([^-])([A-Z])/g;
|
||||
return str
|
||||
.replace(hyphenateRE, '$1-$2')
|
||||
.replace(hyphenateRE, '$1-$2')
|
||||
.toLowerCase();
|
||||
};
|
||||
|
||||
export const capitalize = function(str) {
|
||||
if (!isString(str)) return str;
|
||||
return str.charAt(0).toUpperCase() + str.slice(1);
|
||||
};
|
||||
|
||||
export const looseEqual = function(a, b) {
|
||||
const isObjectA = isObject(a);
|
||||
const isObjectB = isObject(b);
|
||||
if (isObjectA && isObjectB) {
|
||||
return JSON.stringify(a) === JSON.stringify(b);
|
||||
} else if (!isObjectA && !isObjectB) {
|
||||
return String(a) === String(b);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
export const arrayEquals = function(arrayA, arrayB) {
|
||||
arrayA = arrayA || [];
|
||||
arrayB = arrayB || [];
|
||||
|
||||
if (arrayA.length !== arrayB.length) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (let i = 0; i < arrayA.length; i++) {
|
||||
if (!looseEqual(arrayA[i], arrayB[i])) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
|
||||
export const isEqual = function(value1, value2) {
|
||||
if (Array.isArray(value1) && Array.isArray(value2)) {
|
||||
return arrayEquals(value1, value2);
|
||||
}
|
||||
return looseEqual(value1, value2);
|
||||
};
|
||||
|
||||
export const isEmpty = function(val) {
|
||||
// null or undefined
|
||||
if (val == null) return true;
|
||||
|
||||
if (typeof val === 'boolean') return false;
|
||||
|
||||
if (typeof val === 'number') return !val;
|
||||
|
||||
if (val instanceof Error) return val.message === '';
|
||||
|
||||
switch (Object.prototype.toString.call(val)) {
|
||||
// String or Array
|
||||
case '[object String]':
|
||||
case '[object Array]':
|
||||
return !val.length;
|
||||
|
||||
// Map or Set or File
|
||||
case '[object File]':
|
||||
case '[object Map]':
|
||||
case '[object Set]': {
|
||||
return !val.size;
|
||||
}
|
||||
// Plain Object
|
||||
case '[object Object]': {
|
||||
return !Object.keys(val).length;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
export function rafThrottle(fn) {
|
||||
let locked = false;
|
||||
return function(...args) {
|
||||
if (locked) return;
|
||||
locked = true;
|
||||
window.requestAnimationFrame(_ => {
|
||||
fn.apply(this, args);
|
||||
locked = false;
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
export function objToArray(obj) {
|
||||
if (Array.isArray(obj)) {
|
||||
return obj;
|
||||
}
|
||||
return isEmpty(obj) ? [] : [obj];
|
||||
}
|
5
src/utils/vdom.js
Normal file
5
src/utils/vdom.js
Normal file
@@ -0,0 +1,5 @@
|
||||
import { hasOwn } from 'element-ui/src/utils/util';
|
||||
|
||||
export function isVNode(node) {
|
||||
return node !== null && typeof node === 'object' && hasOwn(node, 'componentOptions');
|
||||
};
|
198
src/utils/vue-popper.js
Normal file
198
src/utils/vue-popper.js
Normal file
@@ -0,0 +1,198 @@
|
||||
import Vue from 'vue';
|
||||
import {
|
||||
PopupManager
|
||||
} from 'element-ui/src/utils/popup';
|
||||
|
||||
const PopperJS = Vue.prototype.$isServer ? function() {} : require('./popper');
|
||||
const stop = e => e.stopPropagation();
|
||||
|
||||
/**
|
||||
* @param {HTMLElement} [reference=$refs.reference] - The reference element used to position the popper.
|
||||
* @param {HTMLElement} [popper=$refs.popper] - The HTML element used as popper, or a configuration used to generate the popper.
|
||||
* @param {String} [placement=button] - Placement of the popper accepted values: top(-start, -end), right(-start, -end), bottom(-start, -end), left(-start, -end)
|
||||
* @param {Number} [offset=0] - Amount of pixels the popper will be shifted (can be negative).
|
||||
* @param {Boolean} [visible=false] Visibility of the popup element.
|
||||
* @param {Boolean} [visible-arrow=false] Visibility of the arrow, no style.
|
||||
*/
|
||||
export default {
|
||||
props: {
|
||||
transformOrigin: {
|
||||
type: [Boolean, String],
|
||||
default: true
|
||||
},
|
||||
placement: {
|
||||
type: String,
|
||||
default: 'bottom'
|
||||
},
|
||||
boundariesPadding: {
|
||||
type: Number,
|
||||
default: 5
|
||||
},
|
||||
reference: {},
|
||||
popper: {},
|
||||
offset: {
|
||||
default: 0
|
||||
},
|
||||
value: Boolean,
|
||||
visibleArrow: Boolean,
|
||||
arrowOffset: {
|
||||
type: Number,
|
||||
default: 35
|
||||
},
|
||||
appendToBody: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
popperOptions: {
|
||||
type: Object,
|
||||
default() {
|
||||
return {
|
||||
gpuAcceleration: false
|
||||
};
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
showPopper: false,
|
||||
currentPlacement: ''
|
||||
};
|
||||
},
|
||||
|
||||
watch: {
|
||||
value: {
|
||||
immediate: true,
|
||||
handler(val) {
|
||||
this.showPopper = val;
|
||||
this.$emit('input', val);
|
||||
}
|
||||
},
|
||||
|
||||
showPopper(val) {
|
||||
if (this.disabled) return;
|
||||
val ? this.updatePopper() : this.destroyPopper();
|
||||
this.$emit('input', val);
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
createPopper() {
|
||||
if (this.$isServer) return;
|
||||
this.currentPlacement = this.currentPlacement || this.placement;
|
||||
if (!/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement)) {
|
||||
return;
|
||||
}
|
||||
|
||||
const options = this.popperOptions;
|
||||
const popper = this.popperElm = this.popperElm || this.popper || this.$refs.popper;
|
||||
let reference = this.referenceElm = this.referenceElm || this.reference || this.$refs.reference;
|
||||
|
||||
if (!reference &&
|
||||
this.$slots.reference &&
|
||||
this.$slots.reference[0]) {
|
||||
reference = this.referenceElm = this.$slots.reference[0].elm;
|
||||
}
|
||||
|
||||
if (!popper || !reference) return;
|
||||
if (this.visibleArrow) this.appendArrow(popper);
|
||||
if (this.appendToBody) document.body.appendChild(this.popperElm);
|
||||
if (this.popperJS && this.popperJS.destroy) {
|
||||
this.popperJS.destroy();
|
||||
}
|
||||
|
||||
options.placement = this.currentPlacement;
|
||||
options.offset = this.offset;
|
||||
options.arrowOffset = this.arrowOffset;
|
||||
this.popperJS = new PopperJS(reference, popper, options);
|
||||
this.popperJS.onCreate(_ => {
|
||||
this.$emit('created', this);
|
||||
this.resetTransformOrigin();
|
||||
this.$nextTick(this.updatePopper);
|
||||
});
|
||||
if (typeof options.onUpdate === 'function') {
|
||||
this.popperJS.onUpdate(options.onUpdate);
|
||||
}
|
||||
this.popperJS._popper.style.zIndex = PopupManager.nextZIndex();
|
||||
this.popperElm.addEventListener('click', stop);
|
||||
},
|
||||
|
||||
updatePopper() {
|
||||
const popperJS = this.popperJS;
|
||||
if (popperJS) {
|
||||
popperJS.update();
|
||||
if (popperJS._popper) {
|
||||
popperJS._popper.style.zIndex = PopupManager.nextZIndex();
|
||||
}
|
||||
} else {
|
||||
this.createPopper();
|
||||
}
|
||||
},
|
||||
|
||||
doDestroy(forceDestroy) {
|
||||
/* istanbul ignore if */
|
||||
if (!this.popperJS || (this.showPopper && !forceDestroy)) return;
|
||||
this.popperJS.destroy();
|
||||
this.popperJS = null;
|
||||
},
|
||||
|
||||
destroyPopper() {
|
||||
if (this.popperJS) {
|
||||
this.resetTransformOrigin();
|
||||
}
|
||||
},
|
||||
|
||||
resetTransformOrigin() {
|
||||
if (!this.transformOrigin) return;
|
||||
let placementMap = {
|
||||
top: 'bottom',
|
||||
bottom: 'top',
|
||||
left: 'right',
|
||||
right: 'left'
|
||||
};
|
||||
let placement = this.popperJS._popper.getAttribute('x-placement').split('-')[0];
|
||||
let origin = placementMap[placement];
|
||||
this.popperJS._popper.style.transformOrigin = typeof this.transformOrigin === 'string'
|
||||
? this.transformOrigin
|
||||
: ['top', 'bottom'].indexOf(placement) > -1 ? `center ${ origin }` : `${ origin } center`;
|
||||
},
|
||||
|
||||
appendArrow(element) {
|
||||
let hash;
|
||||
if (this.appended) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.appended = true;
|
||||
|
||||
for (let item in element.attributes) {
|
||||
if (/^_v-/.test(element.attributes[item].name)) {
|
||||
hash = element.attributes[item].name;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
const arrow = document.createElement('div');
|
||||
|
||||
if (hash) {
|
||||
arrow.setAttribute(hash, '');
|
||||
}
|
||||
arrow.setAttribute('x-arrow', '');
|
||||
arrow.className = 'popper__arrow';
|
||||
element.appendChild(arrow);
|
||||
}
|
||||
},
|
||||
|
||||
beforeDestroy() {
|
||||
this.doDestroy(true);
|
||||
if (this.popperElm && this.popperElm.parentNode === document.body) {
|
||||
this.popperElm.removeEventListener('click', stop);
|
||||
document.body.removeChild(this.popperElm);
|
||||
}
|
||||
},
|
||||
|
||||
// call destroy in keep-alive mode
|
||||
deactivated() {
|
||||
this.$options.beforeDestroy[0].call(this);
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user