UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

1,532 lines (1,517 loc) 301 kB
import { InjectionToken, ɵɵdefineInjectable, ɵɵinject, Injectable, Optional, Inject, Pipe, NgModule, INJECTOR, Injector } from '@angular/core'; import { warn } from 'ng-zorro-antd/core/logger'; import { BehaviorSubject } from 'rxjs'; import { formatDate } from '@angular/common'; import fnsFormat from 'date-fns/format'; import fnsGetISOWeek from 'date-fns/getISOWeek'; import fnsParse from 'date-fns/parse'; import { ɵNgTimeParser } from 'ng-zorro-antd/core/time'; /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ var en_US = { locale: 'en', Pagination: { items_per_page: '/ page', jump_to: 'Go to', jump_to_confirm: 'confirm', page: '', prev_page: 'Previous Page', next_page: 'Next Page', prev_5: 'Previous 5 Pages', next_5: 'Next 5 Pages', prev_3: 'Previous 3 Pages', next_3: 'Next 3 Pages' }, DatePicker: { lang: { placeholder: 'Select date', yearPlaceholder: 'Select year', quarterPlaceholder: 'Select quarter', monthPlaceholder: 'Select month', weekPlaceholder: 'Select week', rangePlaceholder: ['Start date', 'End date'], rangeYearPlaceholder: ['Start year', 'End year'], rangeMonthPlaceholder: ['Start month', 'End month'], rangeWeekPlaceholder: ['Start week', 'End week'], locale: 'en_US', today: 'Today', now: 'Now', backToToday: 'Back to today', ok: 'Ok', clear: 'Clear', month: 'Month', year: 'Year', timeSelect: 'select time', dateSelect: 'select date', weekSelect: 'Choose a week', monthSelect: 'Choose a month', yearSelect: 'Choose a year', decadeSelect: 'Choose a decade', yearFormat: 'YYYY', dateFormat: 'M/D/YYYY', dayFormat: 'D', dateTimeFormat: 'M/D/YYYY HH:mm:ss', monthBeforeYear: true, previousMonth: 'Previous month (PageUp)', nextMonth: 'Next month (PageDown)', previousYear: 'Last year (Control + left)', nextYear: 'Next year (Control + right)', previousDecade: 'Last decade', nextDecade: 'Next decade', previousCentury: 'Last century', nextCentury: 'Next century' }, timePickerLocale: { placeholder: 'Select time', rangePlaceholder: ['Start time', 'End time'] } }, TimePicker: { placeholder: 'Select time', rangePlaceholder: ['Start time', 'End time'] }, Calendar: { lang: { placeholder: 'Select date', yearPlaceholder: 'Select year', quarterPlaceholder: 'Select quarter', monthPlaceholder: 'Select month', weekPlaceholder: 'Select week', rangePlaceholder: ['Start date', 'End date'], rangeYearPlaceholder: ['Start year', 'End year'], rangeMonthPlaceholder: ['Start month', 'End month'], rangeWeekPlaceholder: ['Start week', 'End week'], locale: 'en_US', today: 'Today', now: 'Now', backToToday: 'Back to today', ok: 'Ok', clear: 'Clear', month: 'Month', year: 'Year', timeSelect: 'select time', dateSelect: 'select date', weekSelect: 'Choose a week', monthSelect: 'Choose a month', yearSelect: 'Choose a year', decadeSelect: 'Choose a decade', yearFormat: 'YYYY', dateFormat: 'M/D/YYYY', dayFormat: 'D', dateTimeFormat: 'M/D/YYYY HH:mm:ss', monthBeforeYear: true, previousMonth: 'Previous month (PageUp)', nextMonth: 'Next month (PageDown)', previousYear: 'Last year (Control + left)', nextYear: 'Next year (Control + right)', previousDecade: 'Last decade', nextDecade: 'Next decade', previousCentury: 'Last century', nextCentury: 'Next century' }, timePickerLocale: { placeholder: 'Select time', rangePlaceholder: ['Start time', 'End time'] } }, global: { placeholder: 'Please select' }, Table: { filterTitle: 'Filter menu', filterConfirm: 'OK', filterReset: 'Reset', filterEmptyText: 'No filters', emptyText: 'No data', selectAll: 'Select current page', selectInvert: 'Invert current page', selectionAll: 'Select all data', sortTitle: 'Sort', expand: 'Expand row', collapse: 'Collapse row', triggerDesc: 'Click sort by descend', triggerAsc: 'Click sort by ascend', cancelSort: 'Click to cancel sort' }, Modal: { okText: 'OK', cancelText: 'Cancel', justOkText: 'OK' }, Popconfirm: { okText: 'OK', cancelText: 'Cancel' }, Transfer: { titles: ['', ''], searchPlaceholder: 'Search here', itemUnit: 'item', itemsUnit: 'items', remove: 'Remove', selectCurrent: 'Select current page', removeCurrent: 'Remove current page', selectAll: 'Select all data', removeAll: 'Remove all data', selectInvert: 'Invert current page' }, Upload: { uploading: 'Uploading...', removeFile: 'Remove file', uploadError: 'Upload error', previewFile: 'Preview file', downloadFile: 'Download file' }, Empty: { description: 'No Data' }, Icon: { icon: 'icon' }, Text: { edit: 'Edit', copy: 'Copy', copied: 'Copied', expand: 'Expand' }, PageHeader: { back: 'Back' } }; /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ var zh_CN = { locale: 'zh-cn', Pagination: { items_per_page: '条/页', jump_to: '跳至', jump_to_confirm: '确定', page: '页', prev_page: '上一页', next_page: '下一页', prev_5: '向前 5 页', next_5: '向后 5 页', prev_3: '向前 3 页', next_3: '向后 3 页' }, DatePicker: { lang: { placeholder: '请选择日期', yearPlaceholder: '请选择年份', quarterPlaceholder: '请选择季度', monthPlaceholder: '请选择月份', weekPlaceholder: '请选择周', rangePlaceholder: ['开始日期', '结束日期'], rangeYearPlaceholder: ['开始年份', '结束年份'], rangeMonthPlaceholder: ['开始月份', '结束月份'], rangeWeekPlaceholder: ['开始周', '结束周'], locale: 'zh_CN', today: '今天', now: '此刻', backToToday: '返回今天', ok: '确定', timeSelect: '选择时间', dateSelect: '选择日期', weekSelect: '选择周', clear: '清除', month: '月', year: '年', previousMonth: '上个月 (翻页上键)', nextMonth: '下个月 (翻页下键)', monthSelect: '选择月份', yearSelect: '选择年份', decadeSelect: '选择年代', yearFormat: 'YYYY年', dayFormat: 'D日', dateFormat: 'YYYY年M月D日', dateTimeFormat: 'YYYY年M月D日 HH时mm分ss秒', previousYear: '上一年 (Control键加左方向键)', nextYear: '下一年 (Control键加右方向键)', previousDecade: '上一年代', nextDecade: '下一年代', previousCentury: '上一世纪', nextCentury: '下一世纪' }, timePickerLocale: { placeholder: '请选择时间', rangePlaceholder: ['开始时间', '结束时间'] } }, TimePicker: { placeholder: '请选择时间', rangePlaceholder: ['开始时间', '结束时间'] }, Calendar: { lang: { placeholder: '请选择日期', yearPlaceholder: '请选择年份', quarterPlaceholder: '请选择季度', monthPlaceholder: '请选择月份', weekPlaceholder: '请选择周', rangePlaceholder: ['开始日期', '结束日期'], rangeYearPlaceholder: ['开始年份', '结束年份'], rangeMonthPlaceholder: ['开始月份', '结束月份'], rangeWeekPlaceholder: ['开始周', '结束周'], locale: 'zh_CN', today: '今天', now: '此刻', backToToday: '返回今天', ok: '确定', timeSelect: '选择时间', dateSelect: '选择日期', weekSelect: '选择周', clear: '清除', month: '月', year: '年', previousMonth: '上个月 (翻页上键)', nextMonth: '下个月 (翻页下键)', monthSelect: '选择月份', yearSelect: '选择年份', decadeSelect: '选择年代', yearFormat: 'YYYY年', dayFormat: 'D日', dateFormat: 'YYYY年M月D日', dateTimeFormat: 'YYYY年M月D日 HH时mm分ss秒', previousYear: '上一年 (Control键加左方向键)', nextYear: '下一年 (Control键加右方向键)', previousDecade: '上一年代', nextDecade: '下一年代', previousCentury: '上一世纪', nextCentury: '下一世纪' }, timePickerLocale: { placeholder: '请选择时间', rangePlaceholder: ['开始时间', '结束时间'] } }, global: { placeholder: '请选择' }, Table: { filterTitle: '筛选', filterConfirm: '确定', filterReset: '重置', filterEmptyText: '无筛选项', selectAll: '全选当页', selectInvert: '反选当页', selectionAll: '全选所有', sortTitle: '排序', expand: '展开行', collapse: '关闭行', triggerDesc: '点击降序', triggerAsc: '点击升序', cancelSort: '取消排序' }, Modal: { okText: '确定', cancelText: '取消', justOkText: '知道了' }, Popconfirm: { cancelText: '取消', okText: '确定' }, Transfer: { searchPlaceholder: '请输入搜索内容', itemUnit: '项', itemsUnit: '项', remove: '删除', selectCurrent: '全选当页', removeCurrent: '删除当页', selectAll: '全选所有', removeAll: '删除全部', selectInvert: '反选当页' }, Upload: { uploading: '文件上传中', removeFile: '删除文件', uploadError: '上传错误', previewFile: '预览文件', downloadFile: '下载文件' }, Empty: { description: '暂无数据' }, Icon: { icon: '图标' }, Text: { edit: '编辑', copy: '复制', copied: '复制成功', expand: '展开' }, PageHeader: { back: '返回' } }; /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ const NZ_I18N = new InjectionToken('nz-i18n'); /** Locale for date operations, should import from date-fns, see example: https://github.com/date-fns/date-fns/blob/v1.30.1/src/locale/zh_cn/index.js */ const NZ_DATE_LOCALE = new InjectionToken('nz-date-locale'); /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ class NzI18nService { constructor(locale, dateLocale) { this._change = new BehaviorSubject(this._locale); this.setLocale(locale || zh_CN); this.setDateLocale(dateLocale || null); } get localeChange() { return this._change.asObservable(); } // [NOTE] Performance issue: this method may called by every change detections // TODO: cache more deeply paths for performance translate(path, data) { // this._logger.debug(`[NzI18nService] Translating(${this._locale.locale}): ${path}`); let content = this._getObjectPath(this._locale, path); if (typeof content === 'string') { if (data) { Object.keys(data).forEach(key => (content = content.replace(new RegExp(`%${key}%`, 'g'), data[key]))); } return content; } return path; } /** * Set/Change current locale globally throughout the WHOLE application * NOTE: If called at runtime, rendered interface may not change along with the locale change, * because this do not trigger another render schedule. * * @param locale The translating letters */ setLocale(locale) { if (this._locale && this._locale.locale === locale.locale) { return; } this._locale = locale; this._change.next(locale); } getLocale() { return this._locale; } getLocaleId() { return this._locale ? this._locale.locale : ''; } setDateLocale(dateLocale) { this.dateLocale = dateLocale; } getDateLocale() { return this.dateLocale; } /** * Get locale data * @param path dot paths for finding exist value from locale data, eg. "a.b.c" * @param defaultValue default value if the result is not "truthy" */ getLocaleData(path, defaultValue) { const result = path ? this._getObjectPath(this._locale, path) : this._locale; if (!result && !defaultValue) { warn(`Missing translations for "${path}" in language "${this._locale.locale}". You can use "NzI18nService.setLocale" as a temporary fix. Welcome to submit a pull request to help us optimize the translations! https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md`); } return result || defaultValue || this._getObjectPath(en_US, path) || {}; } _getObjectPath(obj, path) { let res = obj; const paths = path.split('.'); const depth = paths.length; let index = 0; while (res && index < depth) { res = res[paths[index++]]; } return index === depth ? res : null; } } NzI18nService.ɵprov = ɵɵdefineInjectable({ factory: function NzI18nService_Factory() { return new NzI18nService(ɵɵinject(NZ_I18N, 8), ɵɵinject(NZ_DATE_LOCALE, 8)); }, token: NzI18nService, providedIn: "root" }); NzI18nService.decorators = [ { type: Injectable, args: [{ providedIn: 'root' },] } ]; NzI18nService.ctorParameters = () => [ { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [NZ_I18N,] }] }, { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [NZ_DATE_LOCALE,] }] } ]; /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ class NzI18nPipe { constructor(_locale) { this._locale = _locale; } transform(path, keyValue) { return this._locale.translate(path, keyValue); } } NzI18nPipe.decorators = [ { type: Pipe, args: [{ name: 'nzI18n' },] } ]; NzI18nPipe.ctorParameters = () => [ { type: NzI18nService } ]; /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ class NzI18nModule { } NzI18nModule.decorators = [ { type: NgModule, args: [{ declarations: [NzI18nPipe], exports: [NzI18nPipe] },] } ]; /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ const NZ_DATE_CONFIG = new InjectionToken('date-config'); const NZ_DATE_CONFIG_DEFAULT = { firstDayOfWeek: undefined }; function mergeDateConfig(config) { return Object.assign(Object.assign({}, NZ_DATE_CONFIG_DEFAULT), config); } /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ function DATE_HELPER_SERVICE_FACTORY(injector, config) { const i18n = injector.get(NzI18nService); return i18n.getDateLocale() ? new DateHelperByDateFns(i18n, config) : new DateHelperByDatePipe(i18n, config); } /** * Abstract DateHelperService(Token via Class) * Compatibility: compact for original usage by default which using DatePipe */ class DateHelperService { constructor(i18n, config) { this.i18n = i18n; this.config = config; this.config = mergeDateConfig(this.config); } } DateHelperService.ɵprov = ɵɵdefineInjectable({ factory: function DateHelperService_Factory() { return DATE_HELPER_SERVICE_FACTORY(ɵɵinject(INJECTOR), ɵɵinject(NZ_DATE_CONFIG, 8)); }, token: DateHelperService, providedIn: "root" }); DateHelperService.decorators = [ { type: Injectable, args: [{ providedIn: 'root', useFactory: DATE_HELPER_SERVICE_FACTORY, deps: [Injector, [new Optional(), NZ_DATE_CONFIG]] },] } ]; DateHelperService.ctorParameters = () => [ { type: NzI18nService }, { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [NZ_DATE_CONFIG,] }] } ]; /** * DateHelper that handles date formats with date-fns */ class DateHelperByDateFns extends DateHelperService { getISOWeek(date) { return fnsGetISOWeek(date); } // Use date-fns's "weekStartsOn" to support different locale when "config.firstDayOfWeek" is null // https://github.com/date-fns/date-fns/blob/v2.0.0-alpha.27/src/locale/en-US/index.js#L23 getFirstDayOfWeek() { let defaultWeekStartsOn; try { defaultWeekStartsOn = this.i18n.getDateLocale().options.weekStartsOn; } catch (e) { defaultWeekStartsOn = 1; } return this.config.firstDayOfWeek == null ? defaultWeekStartsOn : this.config.firstDayOfWeek; } /** * Format a date * @see https://date-fns.org/docs/format#description * @param date Date * @param formatStr format string */ format(date, formatStr) { return date ? fnsFormat(date, formatStr, { locale: this.i18n.getDateLocale() }) : ''; } parseDate(text, formatStr) { return fnsParse(text, formatStr, new Date(), { locale: this.i18n.getDateLocale(), weekStartsOn: this.getFirstDayOfWeek() }); } parseTime(text, formatStr) { return this.parseDate(text, formatStr); } } DateHelperByDateFns.ɵprov = ɵɵdefineInjectable({ factory: function DateHelperByDateFns_Factory() { return DATE_HELPER_SERVICE_FACTORY(ɵɵinject(INJECTOR), ɵɵinject(NZ_DATE_CONFIG, 8)); }, token: DateHelperByDateFns, providedIn: "root" }); /** * DateHelper that handles date formats with angular's date-pipe * * @see https://github.com/NG-ZORRO/ng-zorro-antd/issues/2406 - DatePipe may cause non-standard week bug, see: * */ class DateHelperByDatePipe extends DateHelperService { getISOWeek(date) { return +this.format(date, 'w'); } getFirstDayOfWeek() { if (this.config.firstDayOfWeek === undefined) { const locale = this.i18n.getLocaleId(); return locale && ['zh-cn', 'zh-tw'].indexOf(locale.toLowerCase()) > -1 ? 1 : 0; } return this.config.firstDayOfWeek; } format(date, formatStr) { return date ? formatDate(date, formatStr, this.i18n.getLocaleId()) : ''; } parseDate(text) { return new Date(text); } parseTime(text, formatStr) { const parser = new ɵNgTimeParser(formatStr, this.i18n.getLocaleId()); return parser.toDate(text); } } DateHelperByDatePipe.ɵprov = ɵɵdefineInjectable({ factory: function DateHelperByDatePipe_Factory() { return DATE_HELPER_SERVICE_FACTORY(ɵɵinject(INJECTOR), ɵɵinject(NZ_DATE_CONFIG, 8)); }, token: DateHelperByDatePipe, providedIn: "root" }); /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ var ar_EG = { locale: 'ar', Pagination: { items_per_page: '/ الصفحة', jump_to: 'الذهاب إلى', jump_to_confirm: 'تأكيد', page: '', prev_page: 'الصفحة السابقة', next_page: 'الصفحة التالية', prev_5: 'خمس صفحات سابقة', next_5: 'خمس صفحات تالية', prev_3: 'ثلاث صفحات سابقة', next_3: 'ثلاث صفحات تالية' }, DatePicker: { lang: { placeholder: 'اختيار التاريخ', rangePlaceholder: ['البداية', 'النهاية'], locale: 'ar_EG', today: 'اليوم', now: 'الأن', backToToday: 'العودة إلى اليوم', ok: 'تأكيد', clear: 'مسح', month: 'الشهر', year: 'السنة', timeSelect: 'اختيار الوقت', dateSelect: 'اختيار التاريخ', monthSelect: 'اختيار الشهر', yearSelect: 'اختيار السنة', decadeSelect: 'اختيار العقد', yearFormat: 'YYYY', dateFormat: 'M/D/YYYY', dayFormat: 'D', dateTimeFormat: 'M/D/YYYY HH:mm:ss', monthBeforeYear: true, previousMonth: 'الشهر السابق (PageUp)', nextMonth: 'الشهر التالى(PageDown)', previousYear: 'العام السابق (Control + left)', nextYear: 'العام التالى (Control + right)', previousDecade: 'العقد السابق', nextDecade: 'العقد التالى', previousCentury: 'القرن السابق', nextCentury: 'القرن التالى' }, timePickerLocale: { placeholder: 'اختيار الوقت' }, dateFormat: 'DD-MM-YYYY', monthFormat: 'MM-YYYY', dateTimeFormat: 'DD-MM-YYYY HH:mm:ss', weekFormat: 'wo-YYYY' }, TimePicker: { placeholder: 'اختيار الوقت' }, Calendar: { lang: { placeholder: 'اختيار التاريخ', rangePlaceholder: ['البداية', 'النهاية'], locale: 'ar_EG', today: 'اليوم', now: 'الأن', backToToday: 'العودة إلى اليوم', ok: 'تأكيد', clear: 'مسح', month: 'الشهر', year: 'السنة', timeSelect: 'اختيار الوقت', dateSelect: 'اختيار التاريخ', monthSelect: 'اختيار الشهر', yearSelect: 'اختيار السنة', decadeSelect: 'اختيار العقد', yearFormat: 'YYYY', dateFormat: 'M/D/YYYY', dayFormat: 'D', dateTimeFormat: 'M/D/YYYY HH:mm:ss', monthBeforeYear: true, previousMonth: 'الشهر السابق (PageUp)', nextMonth: 'الشهر التالى(PageDown)', previousYear: 'العام السابق (Control + left)', nextYear: 'العام التالى (Control + right)', previousDecade: 'العقد السابق', nextDecade: 'العقد التالى', previousCentury: 'القرن السابق', nextCentury: 'القرن التالى' }, timePickerLocale: { placeholder: 'اختيار الوقت' }, dateFormat: 'DD-MM-YYYY', monthFormat: 'MM-YYYY', dateTimeFormat: 'DD-MM-YYYY HH:mm:ss', weekFormat: 'wo-YYYY' }, global: { placeholder: 'يرجى التحديد' }, Table: { filterTitle: 'الفلاتر', filterConfirm: 'تأكيد', filterReset: 'إعادة ضبط', selectAll: 'اختيار الكل', selectInvert: 'إلغاء الاختيار', selectionAll: 'حدد جميع البيانات', sortTitle: 'رتب', expand: 'توسيع الصف', collapse: 'طي الصف', triggerDesc: 'ترتيب تنازلي', triggerAsc: 'ترتيب تصاعدي', cancelSort: 'إلغاء الترتيب' }, Modal: { okText: 'تأكيد', cancelText: 'إلغاء', justOkText: 'تأكيد' }, Popconfirm: { okText: 'تأكيد', cancelText: 'إلغاء' }, Transfer: { searchPlaceholder: 'ابحث هنا', itemUnit: 'عنصر', itemsUnit: 'عناصر' }, Upload: { uploading: 'جاري الرفع...', removeFile: 'احذف الملف', uploadError: 'مشكلة فى الرفع', previewFile: 'استعرض الملف', downloadFile: 'تحميل الملف' }, Empty: { description: 'لا توجد بيانات' }, Icon: { icon: 'أيقونة' }, Text: { edit: 'تعديل', copy: 'نسخ', copied: 'نقل', expand: 'وسع' }, PageHeader: { back: 'عودة' } }; /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ var az_AZ = { locale: 'az', Pagination: { items_per_page: '/ səhifə', jump_to: 'Get', jump_to_confirm: 'təsdiqlə', page: '', prev_page: 'Əvvəlki Səhifə', next_page: 'Növbəti Səhifə', prev_5: 'Əvvəlki 5 Səhifə', next_5: 'Növbəti 5 Səhifə', prev_3: 'Əvvəlki 3 Səhifə', next_3: 'Növbəti 3 Səhifə' }, DatePicker: { lang: { placeholder: 'Tarix seçin', rangePlaceholder: ['Başlama tarixi', 'Bitmə tarixi'], locale: 'az_AZ', today: 'Bugün', now: 'İndi', backToToday: 'Bugünə qayıt', ok: 'Təsdiq', clear: 'Təmizlə', month: 'Ay', year: 'İl', timeSelect: 'vaxtı seç', dateSelect: 'tarixi seç', weekSelect: 'Həftə seç', monthSelect: 'Ay seç', yearSelect: 'il seç', decadeSelect: 'Onillik seçin', yearFormat: 'YYYY', dateFormat: 'D.M.YYYY', dayFormat: 'D', dateTimeFormat: 'D.M.YYYY HH:mm:ss', monthBeforeYear: true, previousMonth: 'Əvvəlki ay (PageUp)', nextMonth: 'Növbəti ay (PageDown)', previousYear: 'Sonuncu il (Control + left)', nextYear: 'Növbəti il (Control + right)', previousDecade: 'Sonuncu onillik', nextDecade: 'Növbəti onillik', previousCentury: 'Sonuncu əsr', nextCentury: 'Növbəti əsr' }, timePickerLocale: { placeholder: 'Vaxtı seç' } }, TimePicker: { placeholder: 'Vaxtı seç' }, Calendar: { lang: { placeholder: 'Tarix seçin', rangePlaceholder: ['Başlama tarixi', 'Bitmə tarixi'], locale: 'az_AZ', today: 'Bugün', now: 'İndi', backToToday: 'Bugünə qayıt', ok: 'Təsdiq', clear: 'Təmizlə', month: 'Ay', year: 'İl', timeSelect: 'vaxtı seç', dateSelect: 'tarixi seç', weekSelect: 'Həftə seç', monthSelect: 'Ay seç', yearSelect: 'il seç', decadeSelect: 'Onillik seçin', yearFormat: 'YYYY', dateFormat: 'D.M.YYYY', dayFormat: 'D', dateTimeFormat: 'D.M.YYYY HH:mm:ss', monthBeforeYear: true, previousMonth: 'Əvvəlki ay (PageUp)', nextMonth: 'Növbəti ay (PageDown)', previousYear: 'Sonuncu il (Control + left)', nextYear: 'Növbəti il (Control + right)', previousDecade: 'Sonuncu onillik', nextDecade: 'Növbəti onillik', previousCentury: 'Sonuncu əsr', nextCentury: 'Növbəti əsr' }, timePickerLocale: { placeholder: 'Vaxtı seç' } }, Table: { filterTitle: 'Filter menyu', filterConfirm: 'Axtar', filterReset: 'Sıfırla', emptyText: 'Məlumat yoxdur', selectAll: 'Cari səhifəni seç', selectInvert: 'Invert current page' }, Modal: { okText: 'Bəli', cancelText: 'Ləğv et', justOkText: 'Bəli' }, Popconfirm: { okText: 'Bəli', cancelText: 'Ləğv et' }, Transfer: { titles: ['', ''], notFoundContent: 'Tapılmadı', searchPlaceholder: 'Burada axtar', itemUnit: 'item', itemsUnit: 'items' }, Select: { notFoundContent: 'Tapılmadı' }, Upload: { uploading: 'Yüklənir...', removeFile: 'Faylı sil', uploadError: 'Yükləmə xətası', previewFile: 'Fayla önbaxış' } }; /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ var bg_BG = { locale: 'bg', Pagination: { items_per_page: '/ страница', jump_to: 'Към', jump_to_confirm: 'потвърждавам', page: '', prev_page: 'Предишна страница', next_page: 'Следваща страница', prev_5: 'Предишни 5 страници', next_5: 'Следващи 5 страници', prev_3: 'Предишни 3 страници', next_3: 'Следващи 3 страници' }, DatePicker: { lang: { placeholder: 'Избор на дата', rangePlaceholder: ['Начална', 'Крайна'], locale: 'bg_BG', today: 'Днес', now: 'Сега', backToToday: 'Към днес', ok: 'Добре', clear: 'Изчистване', month: 'Месец', year: 'Година', timeSelect: 'Избор на час', dateSelect: 'Избор на дата', monthSelect: 'Избор на месец', yearSelect: 'Избор на година', decadeSelect: 'Десетилетие', yearFormat: 'YYYY', dateFormat: 'D M YYYY', dayFormat: 'D', dateTimeFormat: 'D M YYYY HH:mm:ss', monthBeforeYear: true, previousMonth: 'Предишен месец (PageUp)', nextMonth: 'Следващ месец (PageDown)', previousYear: 'Последна година (Control + left)', nextYear: 'Следваща година (Control + right)', previousDecade: 'Предишно десетилетие', nextDecade: 'Следващо десетилетие', previousCentury: 'Последен век', nextCentury: 'Следващ век' }, timePickerLocale: { placeholder: 'Избор на час' } }, TimePicker: { placeholder: 'Избор на час' }, Calendar: { lang: { placeholder: 'Избор на дата', rangePlaceholder: ['Начална', 'Крайна'], locale: 'bg_BG', today: 'Днес', now: 'Сега', backToToday: 'Към днес', ok: 'Добре', clear: 'Изчистване', month: 'Месец', year: 'Година', timeSelect: 'Избор на час', dateSelect: 'Избор на дата', monthSelect: 'Избор на месец', yearSelect: 'Избор на година', decadeSelect: 'Десетилетие', yearFormat: 'YYYY', dateFormat: 'D M YYYY', dayFormat: 'D', dateTimeFormat: 'D M YYYY HH:mm:ss', monthBeforeYear: true, previousMonth: 'Предишен месец (PageUp)', nextMonth: 'Следващ месец (PageDown)', previousYear: 'Последна година (Control + left)', nextYear: 'Следваща година (Control + right)', previousDecade: 'Предишно десетилетие', nextDecade: 'Следващо десетилетие', previousCentury: 'Последен век', nextCentury: 'Следващ век' }, timePickerLocale: { placeholder: 'Избор на час' } }, Table: { filterTitle: 'Филтриране', filterConfirm: 'Добре', filterReset: 'Нулриане', selectAll: 'Избор на текуща страница', selectInvert: 'Обръщане' }, Modal: { okText: 'Добре', cancelText: 'Отказ', justOkText: 'Добре' }, Popconfirm: { okText: 'Добре', cancelText: 'Отказ' }, Transfer: { searchPlaceholder: 'Търсене', itemUnit: 'избор', itemsUnit: 'избори' }, Upload: { uploading: 'Качване...', removeFile: 'Премахване', uploadError: 'Грешка при качването', previewFile: 'Преглед', downloadFile: 'Свали файл' }, Empty: { description: 'Няма данни' } }; /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ var by_BY = { locale: 'by', Pagination: { items_per_page: '/старонка', jump_to: 'Перайсці', jump_to_confirm: 'Пацвердзіць', page: '', prev_page: 'Назад', next_page: 'Наперад', prev_5: 'Папярэднія 5', next_5: 'Наступныя 5', prev_3: 'Папярэднія 3', next_3: 'Наступныя 3' }, DatePicker: { lang: { placeholder: 'Выберыце дату', yearPlaceholder: 'Выберыце год', quarterPlaceholder: 'Выберыце квартал', monthPlaceholder: 'Выберыце месяц', weekPlaceholder: 'Выберыце тыдзень', rangePlaceholder: ['Пачатковая дата', 'Канчатковая дата'], rangeYearPlaceholder: ['Пачатковы год', 'Год заканчэння'], rangeMonthPlaceholder: ['Пачатковы месяц', 'Канчатковы месяц'], rangeWeekPlaceholder: ['Пачатковы тыдзень', 'Канчатковы тыдзень'], locale: 'by_BY', today: 'Сёння', now: 'Зараз', backToToday: 'Дадзеная дата', ok: 'Ok', clear: 'Ачысціць', month: 'Месяц', year: 'Год', timeSelect: 'Выбраць час', dateSelect: 'Выбраць дату', weekSelect: 'Выбраць тыдзень', monthSelect: 'Выбраць месяц', yearSelect: 'Выбраць год', decadeSelect: 'Выбраць дзесяцігоддзе', yearFormat: 'YYYY', dateFormat: 'D-M-YYYY', dayFormat: 'D', dateTimeFormat: 'D-M-YYYY HH:mm:ss', monthBeforeYear: true, previousMonth: 'Папярэдні месяц (PageUp)', nextMonth: 'Наступны месяц (PageDown)', previousYear: 'Папярэдні год (Control + left)', nextYear: 'Наступны год (Control + right)', previousDecade: 'Папярэдняе дзесяцігоддзе', nextDecade: 'Наступнае дзесяцігоддзе', previousCentury: 'Папярэдні век', nextCentury: 'Наступны век' }, timePickerLocale: { placeholder: 'Выберыце час', rangePlaceholder: ['Час пачатку', 'Час заканчэння'] } }, TimePicker: { placeholder: 'Выберыце час', rangePlaceholder: ['Час пачатку', 'Час заканчэння'] }, Calendar: { lang: { placeholder: 'Выберыце дату', yearPlaceholder: 'Выберыце год', quarterPlaceholder: 'Выберыце квартал', monthPlaceholder: 'Выберыце месяц', weekPlaceholder: 'Выберыце тыдзень', rangePlaceholder: ['Пачатковая дата', 'Канчатковая дата'], rangeYearPlaceholder: ['Пачатковы год', 'Год заканчэння'], rangeMonthPlaceholder: ['Пачатковы месяц', 'Канчатковы месяц'], rangeWeekPlaceholder: ['Пачатковы тыдзень', 'Канчатковы тыдзень'], locale: 'by_BY', today: 'Сёння', now: 'Зараз', backToToday: 'Дадзеная дата', ok: 'Ok', clear: 'Ачысціць', month: 'Месяц', year: 'Год', timeSelect: 'Выбраць час', dateSelect: 'Выбраць дату', weekSelect: 'Выбраць тыдзень', monthSelect: 'Выбраць месяц', yearSelect: 'Выбраць год', decadeSelect: 'Выбраць дзесяцігоддзе', yearFormat: 'YYYY', dateFormat: 'D-M-YYYY', dayFormat: 'D', dateTimeFormat: 'D-M-YYYY HH:mm:ss', monthBeforeYear: true, previousMonth: 'Папярэдні месяц (PageUp)', nextMonth: 'Наступны месяц (PageDown)', previousYear: 'Папярэдні год (Control + left)', nextYear: 'Наступны год (Control + right)', previousDecade: 'Папярэдняе дзесяцігоддзе', nextDecade: 'Наступнае дзесяцігоддзе', previousCentury: 'Папярэдні век', nextCentury: 'Наступны век' }, timePickerLocale: { placeholder: 'Выберыце час', rangePlaceholder: ['Час пачатку', 'Час заканчэння'] } }, global: { placeholder: 'Калі ласка выберыце' }, Table: { filterTitle: 'Фільтр', filterConfirm: 'OK', filterReset: 'Скінуць', filterEmptyText: 'Без фільтраў', emptyText: 'Няма дадзеных', selectAll: 'Выбраць усе', selectInvert: 'Інвертаваць выбар', selectionAll: 'Выбраць усе дадзеныя', sortTitle: 'Сартаванне', expand: 'Разгарнуць радок', collapse: 'Згарнуць радок', triggerDesc: 'Націсніце для сартавання па змяншэнні', triggerAsc: 'Націсніце для сартавання па ўзросту', cancelSort: 'Націсніце, каб адмяніць сартаванне' }, Modal: { okText: 'OK', cancelText: 'Адмена', justOkText: 'OK' }, Popconfirm: { okText: 'OK', cancelText: 'Адмена' }, Transfer: { titles: ['', ''], searchPlaceholder: 'Пошук', itemUnit: 'элем.', itemsUnit: 'элем.', remove: 'Выдаліць', selectAll: 'Выбраць усе дадзеныя', selectCurrent: 'Вылучыць дадзеную старонку', selectInvert: 'Паказаць у зваротным парадку', removeAll: 'Выдаліць усе дадзеныя', removeCurrent: 'Выдаліць дадзеную старонку' }, Upload: { uploading: 'Загрузка...', removeFile: 'Выдаліць файл', uploadError: 'Адбылася памылка пры загрузцы', previewFile: 'Прадпрагляд файла', downloadFile: 'Загрузіць файл' }, Empty: { description: 'Няма дадзеных' }, Icon: { icon: 'Іконка' }, Text: { edit: 'Рэдагаваць', copy: 'Капіяваць', copied: 'Капіяванне завершана', expand: 'Разгарнуць' }, PageHeader: { back: 'Назад' } }; /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ var ca_ES = { locale: 'ca', Pagination: { items_per_page: '/ pàgina', jump_to: 'Anar a', jump_to_confirm: 'Confirma', page: '', prev_page: 'Pàgina prèvia', next_page: 'Pàgina següent', prev_5: '5 pàgines prèvies', next_5: '5 pàgines següents', prev_3: '3 pàgines prèvies', next_3: '3 pàgines següents' }, DatePicker: { lang: { placeholder: 'Seleccionar data', rangePlaceholder: ['Data inicial', 'Data final'], locale: 'ca_ES', today: 'Avui', now: 'Ara', backToToday: 'Tornar a avui', ok: 'Acceptar', clear: 'Netejar', month: 'Mes', year: 'Any', timeSelect: 'Seleccionar hora', dateSelect: 'Seleccionar data', monthSelect: 'Escollir un mes', yearSelect: 'Escollir un any', decadeSelect: 'Escollir una dècada', yearFormat: 'YYYY', dateFormat: 'D/M/YYYY', dayFormat: 'D', dateTimeFormat: 'D/M/YYYY HH:mm:ss', monthBeforeYear: true, previousMonth: 'Mes anterior (PageUp)', nextMonth: 'Mes següent (PageDown)', previousYear: 'Any anterior (Control + left)', nextYear: 'Mes següent (Control + right)', previousDecade: 'Dècada anterior', nextDecade: 'Dècada següent', previousCentury: 'Segle anterior', nextCentury: 'Segle següent' }, timePickerLocale: { placeholder: 'Seleccionar hora' } }, TimePicker: { placeholder: 'Seleccionar hora' }, Calendar: { lang: { placeholder: 'Seleccionar data', rangePlaceholder: ['Data inicial', 'Data final'], locale: 'ca_ES', today: 'Avui', now: 'Ara', backToToday: 'Tornar a avui', ok: 'Acceptar', clear: 'Netejar', month: 'Mes', year: 'Any', timeSelect: 'Seleccionar hora', dateSelect: 'Seleccionar data', monthSelect: 'Escollir un mes', yearSelect: 'Escollir un any', decadeSelect: 'Escollir una dècada', yearFormat: 'YYYY', dateFormat: 'D/M/YYYY', dayFormat: 'D', dateTimeFormat: 'D/M/YYYY HH:mm:ss', monthBeforeYear: true, previousMonth: 'Mes anterior (PageUp)', nextMonth: 'Mes següent (PageDown)', previousYear: 'Any anterior (Control + left)', nextYear: 'Mes següent (Control + right)', previousDecade: 'Dècada anterior', nextDecade: 'Dècada següent', previousCentury: 'Segle anterior', nextCentury: 'Segle següent' }, timePickerLocale: { placeholder: 'Seleccionar hora' } }, global: { placeholder: 'Seleccionar' }, Table: { filterTitle: 'Filtrar el menú', filterConfirm: 'D’acord', filterReset: 'Reiniciar', filterEmptyText: 'Sense filtres', selectAll: 'Seleccionar la pàgina actual', selectInvert: 'Invertir la selecció', selectionAll: 'Seleccionar-ho tot', sortTitle: 'Ordenar', expand: 'Ampliar la fila', collapse: 'Plegar la fila', triggerDesc: 'Ordre descendent', triggerAsc: 'Ordre ascendent', cancelSort: 'Desactivar l’ordre' }, Modal: { okText: 'D’acord', cancelText: 'Cancel·lar', justOkText: 'D’acord' }, Popconfirm: { okText: 'D’acord', cancelText: 'Cancel·lar' }, Transfer: { titles: ['', ''], searchPlaceholder: 'Cercar', itemUnit: 'ítem', itemsUnit: 'ítems', remove: 'Eliminar', selectCurrent: 'Seleccionar la pàgina actual', removeCurrent: 'Eliminar la selecció', selectAll: 'Seleccionar-ho tot', removeAll: 'Eliminar-ho tot', selectInvert: 'Invertir la selecció' }, Upload: { uploading: 'Carregant…', removeFile: 'Eliminar el fitxer', uploadError: 'Error de càrrega', previewFile: 'Vista prèvia del fitxer', downloadFile: 'Baixar el fitxer' }, Empty: { description: 'Sense dades' }, Icon: { icon: 'icona' }, Text: { edit: 'Editar', copy: 'Copiar', copied: 'Copiat', expand: 'Ampliar' }, PageHeader: { back: 'Enrere' } }; /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ var cs_CZ = { locale: 'cs', Pagination: { items_per_page: '/ strana', jump_to: 'Přejít', jump_to_confirm: 'potvrdit', page: '', prev_page: 'Předchozí strana', next_page: 'Následující strana', prev_5: 'Předchozích 5 stran', next_5: 'Následujících 5 stran', prev_3: 'Předchozí 3 strany', next_3: 'Následující 3 strany' }, DatePicker: { lang: { placeholder: 'Vybrat datum', rangePlaceholder: ['Od', 'Do'], locale: 'cs_CZ', today: 'Dnes', now: 'Nyní', backToToday: 'Zpět na dnešek', ok: 'Ok', clear: 'Vymazat', month: 'Měsíc', year: 'Rok', timeSelect: 'Vybrat čas', dateSelect: 'Vybrat datum', monthSelect: 'Vyberte měsíc', yearSelect: 'Vyberte rok', decadeSelect: 'Vyberte dekádu', yearFormat: 'YYYY', dateFormat: 'D.M.YYYY', dayFormat: 'D', dateTimeFormat: 'D.M.YYYY HH:mm:ss', monthBeforeYear: true, previousMonth: 'Předchozí měsíc (PageUp)', nextMonth: 'Následující (PageDown)', previousYear: 'Předchozí rok (Control + left)', nextYear: 'Následující rok (Control + right)', previousDecade: 'Předchozí dekáda', nextDecade: 'Následující dekáda', previousCentury: 'Předchozí století', nextCentury: 'Následující století' }, timePickerLocale: { placeholder: 'Vybrat čas' } }, TimePicker: { placeholder: 'Vybrat čas' }, Calendar: { lang: { placeholder: 'Vybrat datum', rangePlaceholder: ['Od', 'Do'], locale: 'cs_CZ', today: 'Dnes', now: 'Nyní', backToToday: 'Zpět na dnešek', ok: 'Ok', clear: 'Vymazat', month: 'Měsíc', year: 'Rok', timeSelect: 'Vybrat čas', dateSelect: 'Vybrat datum', monthSelect: 'Vyberte měsíc', yearSelect: 'Vyberte rok', decadeSelect: 'Vyberte dekádu', yearFormat: 'YYYY', dateFormat: 'D.M.YYYY', dayFormat: 'D', dateTimeFormat: 'D.M.YYYY HH:mm:ss', monthBeforeYear: true, previousMonth: 'Předchozí měsíc (PageUp)', nextMonth: 'Následující (PageDown)', previousYear: 'Předchozí rok (Control + left)', nextYear: 'Následující rok (Control + right)', previousDecade: 'Předchozí dekáda', nextDecade: 'Následující dekáda', previousCentury: 'Předchozí století', nextCentury: 'Následující století' }, timePickerLocale: { placeholder: 'Vybrat čas' } }, global: { placeholder: 'Prosím vyber' }, Table: { filterTitle: 'Filtr', filterConfirm: 'Potvrdit', filterReset: 'Obnovit', filterEmptyText: 'Žádné filtry', selectAll: 'Vybrat všehchny řádky na současné stránce', selectInvert: 'Invertovat výběr na současné stránce', selectionAll: 'Vybrat všechny řádky', sortTitle: 'Řadit', expand: 'Rozbalit řádek', collapse: 'Zabalit řádek', triggerDesc: 'Klikni pro sestupné řazení', triggerAsc: 'Klikni pro vzestupné řazení', cancelSort: 'Klikni pro zrušení řazení' }, Modal: { okText: 'Ok', cancelText: 'Storno', justOkText: 'Ok' }, Popconfirm: { okText: 'Ok', cancelText: 'Storno' }, Transfer: { searchPlaceholder: 'Vyhledávání', itemUnit: 'položka', itemsUnit: 'položek' }, Upload: { uploading: 'Nahrávání...', removeFile: 'Odstranit soubor', uploadError: 'Chyba při nahrávání', previewFile: 'Zobrazit soubor', downloadFile: 'Stáhnout soubor' }, Empty: { description: 'Žádná data' } }; /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ var da_DK = { locale: 'da', DatePicker: { lang: { placeholder: 'Vælg dato', rangePlaceholder: ['Startdato', 'Slutdato'], locale: 'da_DK', today: 'I dag', now: 'Nu', backToToday: 'Gå til i dag', ok: 'Ok', clear: 'Ryd', month: 'Måned', year: 'År', timeSelect: 'Vælg tidspunkt', dateSelect: 'Vælg dato', monthSelect: 'Vælg måned', yearSelect: 'Vælg år', decadeSelect: 'Vælg årti', yearFormat: 'YYYY', dateFormat: 'D/M/YYYY', dayFormat: 'D', dateTimeFormat: 'D/M/YYYY HH:mm:ss', monthBeforeYear: true, previousMonth: 'Forrige måned (Page Up)', nextMonth: 'Næste måned (Page Down)', previousYear: 'Forrige år (Ctrl-venstre pil)', nextYear: 'Næste år (Ctrl-højre pil)', previousDecade: 'Forrige årti', nextDecade: 'Næste årti', previousCentury: 'Forrige århundrede', nextCentury: 'Næste århundrede' }, timePickerLocale: { placeholder: 'Vælg tid' } }, TimePicker: { placeholder: 'Vælg tid' }, Calendar: { lang: { placeholder: 'Vælg dato', rangePlaceholder: ['Startdato', 'Slutdato'], locale: 'da_DK', today: 'I dag', now: 'Nu', backToToday: 'Gå til i dag', ok: 'Ok', clear: 'Ryd', month: 'Måned', year: 'År', timeSelect: 'Vælg tidspunkt', dateSelect: 'Vælg dato', monthSelect: 'Vælg måned', yearSelect: 'Vælg år', decadeSelect: 'Vælg årti', yearFormat: 'YYYY', dateFormat: 'D/M/YYYY', dayFormat: 'D', dateTimeFormat: 'D/M/YYYY HH:mm:ss', monthBeforeYear: true, previousMonth: 'Forrige måned (Page Up)