Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ones-design/locale

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ones-design/locale - npm Package Compare versions

Comparing version 1.11.9 to 1.14.1

dist/extends-e8fb2e5c.js

21

./dist/index.js

@@ -1,13 +0,8 @@

import { default as default2 } from "./zh_CN.js";
import { default as default3 } from "./en_US.js";
import { default as default4 } from "./ja_JP.js";
import "./extends-d9a14db7.js";
import "dayjs";
import "dayjs/locale/zh-cn.js";
import "dayjs/locale/en.js";
import "dayjs/locale/ja.js";
export {
default3 as enUS,
default4 as jaJP,
default2 as zhCN
};
export { default as zhCN } from './zh_CN.js';
export { default as enUS } from './en_US.js';
export { default as jaJP } from './ja_JP.js';
import './extends-e8fb2e5c.js';
import 'dayjs';
import 'dayjs/locale/zh-cn.js';
import 'dayjs/locale/en.js';
import 'dayjs/locale/ja.js';

@@ -1,152 +0,160 @@

import { _ as _extends } from "./extends-d9a14db7.js";
import dayjs from "dayjs";
import "dayjs/locale/en.js";
import { _ as _extends } from './extends-e8fb2e5c.js';
import dayjs from 'dayjs';
import 'dayjs/locale/en.js';
const Pagination = {
// Options.jsx
items_per_page: "/ page",
jump_to: "Go to",
jump_to_confirm: "confirm",
page: "Page",
items_per_page: '/ page',
jump_to: 'Go to',
jump_to_confirm: 'confirm',
page: 'Page',
// Pagination.jsx
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",
page_size: "Page Size"
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',
page_size: 'Page Size'
};
var locale$2 = {
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",
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"
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'
};
var locale$1 = {
placeholder: "Select time",
rangePlaceholder: ["Start time", "End time"]
placeholder: 'Select time',
rangePlaceholder: ['Start time', 'End time']
};
const TimePicker = locale$1;
var locale = {
lang: _extends({
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"],
rangeQuarterPlaceholder: ["Start quarter", "End quarter"],
rangeMonthPlaceholder: ["Start month", "End month"],
rangeWeekPlaceholder: ["Start week", "End week"]
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'],
rangeQuarterPlaceholder: ['Start quarter', 'End quarter'],
rangeMonthPlaceholder: ['Start month', 'End month'],
rangeWeekPlaceholder: ['Start week', 'End week']
}, locale$2),
timePickerLocale: _extends({}, TimePicker)
};
}; // All settings at:
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
const DatePicker = locale;
var typeTemplate$1 = "${label} is not a valid ${type}";
/* eslint-disable no-template-curly-in-string */
var typeTemplate$1 = '${label} is not a valid ${type}';
var localeValues = {
locale: "en",
Pagination,
DatePicker,
TimePicker,
locale: 'en',
Pagination: Pagination,
DatePicker: DatePicker,
TimePicker: TimePicker,
Calendar: DatePicker,
global: {
placeholder: "Please select"
placeholder: 'Please select'
},
Table: {
filterTitle: "Filter menu",
filterConfirm: "OK",
filterReset: "Reset",
filterEmptyText: "No filters",
filterCheckall: "Select all items",
filterSearchPlaceholder: "Search in filters",
emptyText: "No data",
selectAll: "Select current page",
selectInvert: "Invert current page",
selectNone: "Clear all data",
selectionAll: "Select all data",
sortTitle: "Sort",
expand: "Expand row",
collapse: "Collapse row",
triggerDesc: "Click to sort descending",
triggerAsc: "Click to sort ascending",
cancelSort: "Click to cancel sorting"
filterTitle: 'Filter menu',
filterConfirm: 'OK',
filterReset: 'Reset',
filterEmptyText: 'No filters',
filterCheckall: 'Select all items',
filterSearchPlaceholder: 'Search in filters',
emptyText: 'No data',
selectAll: 'Select current page',
selectInvert: 'Invert current page',
selectNone: 'Clear all data',
selectionAll: 'Select all data',
sortTitle: 'Sort',
expand: 'Expand row',
collapse: 'Collapse row',
triggerDesc: 'Click to sort descending',
triggerAsc: 'Click to sort ascending',
cancelSort: 'Click to cancel sorting'
},
Modal: {
okText: "OK",
cancelText: "Cancel",
justOkText: "OK"
okText: 'OK',
cancelText: 'Cancel',
justOkText: 'OK'
},
Popconfirm: {
okText: "OK",
cancelText: "Cancel"
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"
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"
uploading: 'Uploading...',
removeFile: 'Remove file',
uploadError: 'Upload error',
previewFile: 'Preview file',
downloadFile: 'Download file'
},
Empty: {
description: "No Data"
description: 'No Data'
},
Icon: {
icon: "icon"
icon: 'icon'
},
Text: {
edit: "Edit",
copy: "Copy",
copied: "Copied",
expand: "Expand"
edit: 'Edit',
copy: 'Copy',
copied: 'Copied',
expand: 'Expand'
},
PageHeader: {
back: "Back"
back: 'Back'
},
Form: {
optional: "(optional)",
optional: '(optional)',
defaultValidateMessages: {
"default": "Field validation error for ${label}",
required: "Please enter ${label}",
"enum": "${label} must be one of [${enum}]",
whitespace: "${label} cannot be a blank character",
"default": 'Field validation error for ${label}',
required: 'Please enter ${label}',
"enum": '${label} must be one of [${enum}]',
whitespace: '${label} cannot be a blank character',
date: {
format: "${label} date format is invalid",
parse: "${label} cannot be converted to a date",
invalid: "${label} is an invalid date"
format: '${label} date format is invalid',
parse: '${label} cannot be converted to a date',
invalid: '${label} is an invalid date'
},

@@ -169,21 +177,21 @@ types: {

string: {
len: "${label} must be ${len} characters",
min: "${label} must be at least ${min} characters",
max: "${label} must be up to ${max} characters",
range: "${label} must be between ${min}-${max} characters"
len: '${label} must be ${len} characters',
min: '${label} must be at least ${min} characters',
max: '${label} must be up to ${max} characters',
range: '${label} must be between ${min}-${max} characters'
},
number: {
len: "${label} must be equal to ${len}",
min: "${label} must be minimum ${min}",
max: "${label} must be maximum ${max}",
range: "${label} must be between ${min}-${max}"
len: '${label} must be equal to ${len}',
min: '${label} must be minimum ${min}',
max: '${label} must be maximum ${max}',
range: '${label} must be between ${min}-${max}'
},
array: {
len: "Must be ${len} ${label}",
min: "At least ${min} ${label}",
max: "At most ${max} ${label}",
range: "The amount of ${label} must be between ${min}-${max}"
len: 'Must be ${len} ${label}',
min: 'At least ${min} ${label}',
max: 'At most ${max} ${label}',
range: 'The amount of ${label} must be between ${min}-${max}'
},
pattern: {
mismatch: "${label} does not match the pattern ${pattern}"
mismatch: '${label} does not match the pattern ${pattern}'
}

@@ -193,8 +201,9 @@ }

Image: {
preview: "Preview"
preview: 'Preview'
}
};
const defaultLocale = localeValues;
dayjs.locale("en");
const typeTemplate = "${label} is not a valid ${type}.";
dayjs.locale('en');
const typeTemplate = '${label} is not a valid ${type}.';
const {

@@ -212,18 +221,18 @@ DatePicker: AntDatePicker,

...AntDatePicker.lang,
panelPlaceholder: "Select time",
rangeSeparator: "to",
panelPlaceholder: 'Select time',
rangeSeparator: 'to',
rangesLocale: {
today: "Today",
yesterday: "Yesterday",
tomorrow: "Tomorrow",
thisWeek: "This week",
thisMonth: "This month",
thisQuarter: "This quarter",
thisYear: "This year",
beforeDaysFormat: "Last ${count} day(s)",
afterDaysFormat: "In ${count} day(s)"
today: 'Today',
yesterday: 'Yesterday',
tomorrow: 'Tomorrow',
thisWeek: 'This week',
thisMonth: 'This month',
thisQuarter: 'This quarter',
thisYear: 'This year',
beforeDaysFormat: 'Last ${count} day(s)',
afterDaysFormat: 'In ${count} day(s)'
},
popoverLocale: {
okText: "OK",
cancelText: "Cancel"
okText: 'OK',
cancelText: 'Cancel'
}

@@ -233,16 +242,16 @@ }

Dropdown: {
notFoundContent: "No results found"
notFoundContent: 'No results found'
},
Form: {
...AntForm,
optional: " (optional)",
optional: ' (optional)',
defaultValidateMessages: {
default: "Field validation error for ${label}.",
required: "Please enter ${label}.",
enum: "${label} must be one of [${enum}].",
whitespace: "${label} cannot be a blank character.",
default: 'Field validation error for ${label}.',
required: 'Please enter ${label}.',
enum: '${label} must be one of [${enum}].',
whitespace: '${label} cannot be a blank character.',
date: {
format: "${label} date format is invalid.",
parse: "${label} cannot be converted to a date.",
invalid: "${label} is an invalid date."
format: '${label} date format is invalid.',
parse: '${label} cannot be converted to a date.',
invalid: '${label} is an invalid date.'
},

@@ -265,21 +274,21 @@ types: {

string: {
len: "${label} must be ${len} characters.",
min: "${label} must be at least ${min} characters.",
max: "${label} must be up to ${max} characters.",
range: "${label} must be between ${min}-${max} characters."
len: '${label} must be ${len} characters.',
min: '${label} must be at least ${min} characters.',
max: '${label} must be up to ${max} characters.',
range: '${label} must be between ${min}-${max} characters.'
},
number: {
len: "${label} must be equal to ${len}.",
min: "${label} must be minimum ${min}.",
max: "${label} must be maximum ${max}.",
range: "${label} must be between ${min}-${max}."
len: '${label} must be equal to ${len}.',
min: '${label} must be minimum ${min}.',
max: '${label} must be maximum ${max}.',
range: '${label} must be between ${min}-${max}.'
},
array: {
len: "Must be ${len} ${label}.",
min: "At least ${min} ${label}.",
max: "At most ${max} ${label}.",
range: "The amount of ${label} must be between ${min}-${max}."
len: 'Must be ${len} ${label}.',
min: 'At least ${min} ${label}.',
max: 'At most ${max} ${label}.',
range: 'The amount of ${label} must be between ${min}-${max}.'
},
pattern: {
mismatch: "${label} does not match the pattern ${pattern}."
mismatch: '${label} does not match the pattern ${pattern}.'
}

@@ -289,124 +298,145 @@ }

Input: {
invalidText: "Option invalid"
invalidText: 'Option invalid'
},
Layout: {
triggerOpenText: "Expand sidebar",
triggerCloseText: "Collapse sidebar"
triggerOpenText: 'Expand sidebar',
triggerCloseText: 'Collapse sidebar'
},
List: {
emptyText: "No data available"
emptyText: 'No data available'
},
Loading: {
tip: "Loading…"
tip: 'Loading…'
},
Percent: {
emptyText: "No data available"
emptyText: 'No data available'
},
Popover: {
okText: "OK",
cancelText: "Cancel"
okText: 'OK',
cancelText: 'Cancel'
},
Result: {
cancelText: "Close"
cancelText: 'Close'
},
Select: {
clearText: "Clear selected content",
notFoundContent: "No results found",
invalidText: "Option invalid"
clearText: 'Clear selected content',
notFoundContent: 'No results found',
invalidText: 'Option invalid'
},
Tabs: {
moreText: "more"
moreText: 'more'
},
Toast: {
undo: 'Undo'
},
Transfer: {
clearAllText: 'Clear',
leftEmptyText: 'No Data',
notFoundContent: 'No results found',
removeText: 'Remove',
rightEmptyText: 'No data, please select on the left',
searchPlaceholder: 'Search',
selectAllText: 'Select All',
selectedText: 'Selected',
sourceText: 'Source',
targetText: 'Target',
totalText: '(${count} in total)',
toTopText: 'Stick to top',
brackets: '(${text})'
},
Tree: {
emptyText: "No results found",
searchPlaceholder: "Search"
emptyText: 'No results found',
searchPlaceholder: 'Search'
},
Typography: {
copy: "Copy"
copy: 'Copy'
},
Cascader: {
notFoundContent: "No results found",
placeholder: "Please select"
notFoundContent: 'No results found',
placeholder: 'Please select'
},
Menu: {
notFoundContent: "No results found",
searchPlaceholder: "Search"
notFoundContent: 'No results found',
searchPlaceholder: 'Search'
},
Filter: {
placeholder: {
select: "Please select",
input: "Please enter"
select: 'Please select',
input: 'Please enter'
},
operateLocale: {
EQ: "is",
NEQ: "is not",
GT: "greater than",
GTE: "is greater than or equal to",
LT: "less than",
LTE: "is less than or equal to",
BETWEEN: "is between",
RANGE: "is between",
INCLUDE: "includes",
EXCLUDE: "excludes",
MATCH: "includes",
NOT_MATCH: "excludes",
EMPTY: "is empty",
SOME: "is not empty",
ERROR: "Error"
EQ: 'is',
NEQ: 'is not',
GT: 'greater than',
GTE: 'is greater than or equal to',
LT: 'less than',
LTE: 'is less than or equal to',
BETWEEN: 'is between',
RANGE: 'is between',
INCLUDE: 'includes',
EXCLUDE: 'excludes',
MATCH: 'includes',
NOT_MATCH: 'excludes',
EMPTY: 'is empty',
SOME: 'is not empty',
ERROR: 'Error'
},
andText: "And",
orText: "or",
addText: "Add rule",
negative: "Negative value",
to: "to",
addConditionGroup: "Add condition group",
invalidCondition: "invalid filter",
nonExistentValue: "Option does not exist.",
clearCondition: "Clear condition",
invalidField: "invalid Issue field"
andText: 'And',
whereText: 'Where',
orText: 'or',
addText: 'Add rule',
negative: 'Negative value',
to: 'to',
condition: 'Filters',
addConditionGroup: 'Add condition group',
invalidCondition: 'invalid filter',
nonExistentValue: 'Option does not exist.',
clearCondition: 'Clear condition',
invalidField: 'invalid Issue field',
emptyText: 'No filters. Please add filters below.',
fieldPlaceholder: 'Select filter'
},
Upload: {
...AntUpload,
uploading: "Uploading...",
preview: "Preview",
download: "Download",
remove: "Remove",
cancel: "Cancel",
retry: "Retry",
upload: "Upload",
uploadAttachment: "Upload attachment",
uploadError: "Upload failed",
loadError: "Load failed",
uploadImage: "Upload image"
uploading: 'Uploading...',
preview: 'Preview',
download: 'Download',
remove: 'Remove',
cancel: 'Cancel',
retry: 'Retry',
upload: 'Upload',
uploadAttachment: 'Upload attachment',
uploadError: 'Upload failed',
loadError: 'Load failed',
uploadImage: 'Upload image'
},
User: {
selectLocale: {
tooltipText: "Select members, user groups, and departments"
tooltipText: 'Select members, user groups, and departments'
},
transferLocale: {
notFoundContent: "No results found",
notFoundContentFormat: "No ${target}",
restrictTipText: "Search for members",
searchPlaceholderFormat: "Search by username, email${, and :target}",
searchPlaceholderGroupFormat: "Search by ${target}",
outLimitTipFormat: "A maximum of ${count} people can be added at a time",
outLimitDeptTipFormat: "Select maximum  ${count}  department at a time",
clearText: "Clear",
removeText: "Remove",
removeMemberText: "Remove members",
memberText: "Member",
selectedText: "Selected",
selectedFormat: "(${count} member(s) in total)",
selectedStatisticsZero: "(0 in total)",
selectedStatisticsLabel: " ${label}(s),",
selectedStatisticsStart: "(",
selectedStatisticsEnd: ")"
notFoundContent: 'No results found',
notFoundContentFormat: 'No ${target}',
restrictTipText: 'Search for members',
searchPlaceholderFormat: 'Search by username, email${, and :target}',
searchPlaceholderGroupFormat: 'Search by ${target}',
outLimitTipFormat: 'A maximum of ${count} people can be added at a time',
outLimitDeptTipFormat: 'Select maximum  ${count}  department at a time',
clearText: 'Clear',
removeText: 'Remove',
removeMemberText: 'Remove members',
memberText: 'Member',
selectedText: 'Selected',
selectedFormat: '(${count} member(s) in total)',
selectedStatisticsZero: '(0 in total)',
selectedStatisticsLabel: ' ${label}(s),',
selectedStatisticsStart: '(',
selectedStatisticsEnd: ')'
}
},
VirtualTable: {
emptyText: "No Data"
emptyText: 'No Data'
}
};
export {
enUS as default
};
export { enUS as default };

@@ -1,13 +0,8 @@

import { default as default2 } from "./zh_CN.js";
import { default as default3 } from "./en_US.js";
import { default as default4 } from "./ja_JP.js";
import "./extends-d9a14db7.js";
import "dayjs";
import "dayjs/locale/zh-cn.js";
import "dayjs/locale/en.js";
import "dayjs/locale/ja.js";
export {
default3 as enUS,
default4 as jaJP,
default2 as zhCN
};
export { default as zhCN } from './zh_CN.js';
export { default as enUS } from './en_US.js';
export { default as jaJP } from './ja_JP.js';
import './extends-e8fb2e5c.js';
import 'dayjs';
import 'dayjs/locale/zh-cn.js';
import 'dayjs/locale/en.js';
import 'dayjs/locale/ja.js';

@@ -1,116 +0,124 @@

import { _ as _extends } from "./extends-d9a14db7.js";
import dayjs from "dayjs";
import "dayjs/locale/ja.js";
import { _ as _extends } from './extends-e8fb2e5c.js';
import dayjs from 'dayjs';
import 'dayjs/locale/ja.js';
const Pagination = {
// Options.jsx
items_per_page: "件 / ページ",
jump_to: "移動",
jump_to_confirm: "確認する",
page: "ページ",
items_per_page: '件 / ページ',
jump_to: '移動',
jump_to_confirm: '確認する',
page: 'ページ',
// Pagination.jsx
prev_page: "前のページ",
next_page: "次のページ",
prev_5: "前 5ページ",
next_5: "次 5ページ",
prev_3: "前 3ページ",
next_3: "次 3ページ",
page_size: "ページサイズ"
prev_page: '前のページ',
next_page: '次のページ',
prev_5: '前 5ページ',
next_5: '次 5ページ',
prev_3: '前 3ページ',
next_3: '次 3ページ',
page_size: 'ページサイズ'
};
var locale$2 = {
locale: "ja_JP",
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: "次の世紀"
locale: 'ja_JP',
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: '次の世紀'
};
var locale$1 = {
placeholder: "時間を選択",
rangePlaceholder: ["開始時間", "終了時間"]
placeholder: '時間を選択',
rangePlaceholder: ['開始時間', '終了時間']
};
const TimePicker = locale$1;
var locale = {
lang: _extends({
placeholder: "日付を選択",
rangePlaceholder: ["開始日付", "終了日付"]
placeholder: '日付を選択',
rangePlaceholder: ['開始日付', '終了日付']
}, locale$2),
timePickerLocale: _extends({}, TimePicker)
};
}; // All settings at:
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
const DatePicker = locale;
var typeTemplate$1 = "${label}は有効な${type}ではありません";
/* eslint-disable no-template-curly-in-string */
var typeTemplate$1 = '${label}は有効な${type}ではありません';
var localeValues = {
locale: "ja",
Pagination,
DatePicker,
TimePicker,
locale: 'ja',
Pagination: Pagination,
DatePicker: DatePicker,
TimePicker: TimePicker,
Calendar: DatePicker,
Table: {
filterTitle: "フィルター",
filterConfirm: "OK",
filterReset: "リセット",
filterEmptyText: "フィルターなし",
selectAll: "ページ単位で選択",
selectInvert: "ページ単位で反転",
selectionAll: "すべてを選択",
sortTitle: "ソート",
expand: "展開する",
collapse: "折り畳む",
triggerDesc: "クリックで降順にソート",
triggerAsc: "クリックで昇順にソート",
cancelSort: "ソートをキャンセル"
filterTitle: 'フィルター',
filterConfirm: 'OK',
filterReset: 'リセット',
filterEmptyText: 'フィルターなし',
selectAll: 'ページ単位で選択',
selectInvert: 'ページ単位で反転',
selectionAll: 'すべてを選択',
sortTitle: 'ソート',
expand: '展開する',
collapse: '折り畳む',
triggerDesc: 'クリックで降順にソート',
triggerAsc: 'クリックで昇順にソート',
cancelSort: 'ソートをキャンセル'
},
Modal: {
okText: "OK",
cancelText: "キャンセル",
justOkText: "OK"
okText: 'OK',
cancelText: 'キャンセル',
justOkText: 'OK'
},
Popconfirm: {
okText: "OK",
cancelText: "キャンセル"
okText: 'OK',
cancelText: 'キャンセル'
},
Transfer: {
searchPlaceholder: "ここを検索",
itemUnit: "アイテム",
itemsUnit: "アイテム"
searchPlaceholder: 'ここを検索',
itemUnit: 'アイテム',
itemsUnit: 'アイテム'
},
Upload: {
uploading: "アップロード中...",
removeFile: "ファイルを削除",
uploadError: "アップロードエラー",
previewFile: "ファイルをプレビュー",
downloadFile: "ダウンロードファイル"
uploading: 'アップロード中...',
removeFile: 'ファイルを削除',
uploadError: 'アップロードエラー',
previewFile: 'ファイルをプレビュー',
downloadFile: 'ダウンロードファイル'
},
Empty: {
description: "データがありません"
description: 'データがありません'
},
Form: {
defaultValidateMessages: {
"default": "${label}のフィールド検証エラー",
required: "${label}を入力してください",
"enum": "${label}は[${enum}]のいずれかである必要があります",
whitespace: "${label}は空白文字にすることはできません",
"default": '${label}のフィールド検証エラー',
required: '${label}を入力してください',
"enum": '${label}は[${enum}]のいずれかである必要があります',
whitespace: '${label}は空白文字にすることはできません',
date: {
format: "${label}の日付形式は不正です",
parse: "${label}は日付に変換できません",
invalid: "${label}は不正な日付です"
format: '${label}の日付形式は不正です',
parse: '${label}は日付に変換できません',
invalid: '${label}は不正な日付です'
},

@@ -133,21 +141,21 @@ types: {

string: {
len: "${label}は${len}文字である必要があります",
min: "${label}は${min}文字以上である必要があります",
max: "${label}は${max}文字以下である必要があります",
range: "${label}は${min}-${max}文字の範囲である必要があります"
len: '${label}は${len}文字である必要があります',
min: '${label}は${min}文字以上である必要があります',
max: '${label}は${max}文字以下である必要があります',
range: '${label}は${min}-${max}文字の範囲である必要があります'
},
number: {
len: "${label}は${len}と等しい必要があります",
min: "${label}の最小値は${min}です",
max: "${label}の最大値は${max}です",
range: "${label}は${min}-${max}の範囲である必要があります"
len: '${label}は${len}と等しい必要があります',
min: '${label}の最小値は${min}です',
max: '${label}の最大値は${max}です',
range: '${label}は${min}-${max}の範囲である必要があります'
},
array: {
len: "${label}は${len}である必要があります",
min: "${label}の最小は${min}です",
max: "${label}の最大は${max}です",
range: "${label}の合計は${min}-${max}の範囲である必要があります"
len: '${label}は${len}である必要があります',
min: '${label}の最小は${min}です',
max: '${label}の最大は${max}です',
range: '${label}の合計は${min}-${max}の範囲である必要があります'
},
pattern: {
mismatch: "${label}はパターン${pattern}と一致しません"
mismatch: '${label}はパターン${pattern}と一致しません'
}

@@ -158,4 +166,5 @@ }

const AntJaJP = localeValues;
dayjs.locale("ja");
const typeTemplate = "${label}は有効な${type}ではありません。";
dayjs.locale('ja');
const typeTemplate = '${label}は有効な${type}ではありません。';
const {

@@ -173,18 +182,18 @@ DatePicker: AntDatePicker,

...AntDatePicker.lang,
panelPlaceholder: "時間を選択",
rangeSeparator: "~",
panelPlaceholder: '時間を選択',
rangeSeparator: '~',
rangesLocale: {
today: "今日",
yesterday: "昨日",
tomorrow: "明日",
thisWeek: "今週",
thisMonth: "今月",
thisQuarter: "今四半期",
thisYear: "今年",
beforeDaysFormat: "過去 ${count} 日間",
afterDaysFormat: "次の ${count} 日間"
today: '今日',
yesterday: '昨日',
tomorrow: '明日',
thisWeek: '今週',
thisMonth: '今月',
thisQuarter: '今四半期',
thisYear: '今年',
beforeDaysFormat: '過去 ${count} 日間',
afterDaysFormat: '次の ${count} 日間'
},
popoverLocale: {
okText: "確定",
cancelText: "取り消す"
okText: '確定',
cancelText: '取り消す'
}

@@ -194,16 +203,16 @@ }

Dropdown: {
notFoundContent: "一致する結果がありません"
notFoundContent: '一致する結果がありません'
},
Form: {
...AntForm,
optional: "(任意)",
optional: '(任意)',
defaultValidateMessages: {
default: "${label}のフィールド検証エラー。",
required: "${label}を入力してください。",
enum: "${label}は[${enum}]のいずれかである必要があります。",
whitespace: "${label}は空白文字にすることはできません。",
default: '${label}のフィールド検証エラー。',
required: '${label}を入力してください。',
enum: '${label}は[${enum}]のいずれかである必要があります。',
whitespace: '${label}は空白文字にすることはできません。',
date: {
format: "${label}の日付形式は不正です。",
parse: "${label}は日付に変換できません。",
invalid: "${label}は不正な日付です。"
format: '${label}の日付形式は不正です。',
parse: '${label}は日付に変換できません。',
invalid: '${label}は不正な日付です。'
},

@@ -226,21 +235,21 @@ types: {

string: {
len: "${label}は ${len} 文字である必要があります。",
min: "${label}は ${min} 文字以上である必要があります。",
max: "${label}は ${max} 文字以下である必要があります。",
range: "${label}は ${min}-${max} 文字の範囲である必要があります。"
len: '${label}は ${len} 文字である必要があります。',
min: '${label}は ${min} 文字以上である必要があります。',
max: '${label}は ${max} 文字以下である必要があります。',
range: '${label}は ${min}-${max} 文字の範囲である必要があります。'
},
number: {
len: "${label}は ${len} と等しい必要があります。",
min: "${label}の最小値は ${min} です。",
max: "${label}の最大値は ${max} です。",
range: "${label}は ${min}-${max} の範囲である必要があります。"
len: '${label}は ${len} と等しい必要があります。',
min: '${label}の最小値は ${min} です。',
max: '${label}の最大値は ${max} です。',
range: '${label}は ${min}-${max} の範囲である必要があります。'
},
array: {
len: "${label}は ${len} である必要があります。",
min: "${label}の最小は ${min} です。",
max: "${label}の最大は ${max} です。",
range: "${label}の合計は ${min}-${max} の範囲である必要があります。"
len: '${label}は ${len} である必要があります。',
min: '${label}の最小は ${min} です。',
max: '${label}の最大は ${max} です。',
range: '${label}の合計は ${min}-${max} の範囲である必要があります。'
},
pattern: {
mismatch: "${label}はパターン${pattern}と一致しません。"
mismatch: '${label}はパターン${pattern}と一致しません。'
}

@@ -250,124 +259,145 @@ }

Input: {
invalidText: "無効な選択"
invalidText: '無効な選択'
},
Layout: {
triggerOpenText: "サイドバーを展開",
triggerCloseText: "サイドバーを折り畳む"
triggerOpenText: 'サイドバーを展開',
triggerCloseText: 'サイドバーを折り畳む'
},
List: {
emptyText: "データがありません"
emptyText: 'データがありません'
},
Loading: {
tip: "読み込んでいます..."
tip: '読み込んでいます...'
},
Percent: {
emptyText: "データがありません"
emptyText: 'データがありません'
},
Popover: {
okText: "確定",
cancelText: "取り消す"
okText: '確定',
cancelText: '取り消す'
},
Result: {
cancelText: "閉じる"
cancelText: '閉じる'
},
Select: {
clearText: "選択した内容をクリア",
notFoundContent: "一致する結果がありません",
invalidText: "無効な選択"
clearText: '選択した内容をクリア',
notFoundContent: '一致する結果がありません',
invalidText: '無効な選択'
},
Tabs: {
moreText: "もっと"
moreText: 'もっと'
},
Toast: {
undo: '取り消し'
},
Transfer: {
clearAllText: 'クリア',
leftEmptyText: 'データがありません',
notFoundContent: 'マッチング結果がありません',
removeText: '削除する',
rightEmptyText: 'データがありません。左側で選択してください',
searchPlaceholder: '検索',
selectAllText: 'すべて選択',
selectedText: '選択済み',
sourceText: 'Source',
targetText: 'Target',
totalText: '(合計 ${count})',
toTopText: '先頭固定表示',
brackets: '(${text})'
},
Tree: {
emptyText: "データがありません",
searchPlaceholder: "検索して"
emptyText: 'データがありません',
searchPlaceholder: '検索して'
},
Typography: {
copy: "コピー"
copy: 'コピー'
},
Cascader: {
notFoundContent: "一致する結果がありません",
placeholder: "選択してください"
notFoundContent: '一致する結果がありません',
placeholder: '選択してください'
},
Menu: {
notFoundContent: "一致する結果がありません",
searchPlaceholder: "検索"
notFoundContent: '一致する結果がありません',
searchPlaceholder: '検索'
},
Filter: {
placeholder: {
select: "選択してください",
input: "を入力してください"
select: '選択してください',
input: 'を入力してください'
},
operateLocale: {
EQ: "に等しい",
NEQ: "に等しくない",
GT: "より大きい",
GTE: "以上",
LT: "より小さい",
LTE: "以下",
BETWEEN: "の間",
RANGE: "の間",
INCLUDE: "を含む",
EXCLUDE: "を含まない",
MATCH: "を含む",
NOT_MATCH: "を含まない",
EMPTY: "空",
SOME: "空でない",
ERROR: "エラー"
EQ: 'に等しい',
NEQ: 'に等しくない',
GT: 'より大きい',
GTE: '以上',
LT: 'より小さい',
LTE: '以下',
BETWEEN: 'の間',
RANGE: 'の間',
INCLUDE: 'を含む',
EXCLUDE: 'を含まない',
MATCH: 'を含む',
NOT_MATCH: 'を含まない',
EMPTY: '空',
SOME: '空でない',
ERROR: 'エラー'
},
andText: "かつ",
orText: "または",
addText: "条件を追加",
negative: "過去",
to: "~",
addConditionGroup: "条件グループを追加する",
invalidCondition: "フィルタが無効です",
nonExistentValue: "存在しないオプションです",
clearCondition: "条件をクリアする",
invalidField: "無効問題フィールド"
andText: 'かつ',
whereText: '',
orText: 'または',
addText: '条件を追加',
negative: '過去',
to: '~',
condition: 'フィルター設定',
addConditionGroup: '条件グループを追加する',
invalidCondition: 'フィルタが無効です',
nonExistentValue: '存在しないオプションです',
clearCondition: '条件をクリアする',
invalidField: '無効問題フィールド',
emptyText: '条件がありません。条件を追加してください。',
fieldPlaceholder: '条件を選択'
},
Upload: {
...AntUpload,
uploading: "アップロード中...",
preview: "プレビュー",
download: "ダウンロード",
remove: "削除",
cancel: "キャンセル",
retry: "再試行",
upload: "アップロード",
uploadAttachment: "ファイルをアップロード",
uploadError: "アップロードに失敗しました",
uploadImage: "画像をアップロード",
loadError: "読み込みに失敗しました"
uploading: 'アップロード中...',
preview: 'プレビュー',
download: 'ダウンロード',
remove: '削除',
cancel: 'キャンセル',
retry: '再試行',
upload: 'アップロード',
uploadAttachment: 'ファイルをアップロード',
uploadError: 'アップロードに失敗しました',
uploadImage: '画像をアップロード',
loadError: '読み込みに失敗しました'
},
User: {
selectLocale: {
tooltipText: "メンバー、ユーザーグループ、部門を選択"
tooltipText: 'メンバー、ユーザーグループ、部門を選択'
},
transferLocale: {
notFoundContent: "一致する結果がありません",
notFoundContentFormat: "なし${target}",
restrictTipText: "メンバーを取得するには検索してください",
searchPlaceholderFormat: "ユーザー名、メールアドレス${、:target}を検索",
searchPlaceholderGroupFormat: "${target}を検索",
outLimitTipFormat: "一度に最大 ${count} 人を追加できます",
outLimitDeptTipFormat: "一度に最大 ${count} 部門を選択",
clearText: "クリア",
removeText: "削除する",
removeMemberText: "メンバーを削除",
memberText: "メンバー",
selectedText: "選択済み",
selectedFormat: "(合計 ${count} 人のメンバー)",
selectedStatisticsZero: "(合計 0)",
selectedStatisticsLabel: " ${label},",
selectedStatisticsStart: "(合計 ",
selectedStatisticsEnd: ")"
notFoundContent: '一致する結果がありません',
notFoundContentFormat: 'なし${target}',
restrictTipText: 'メンバーを取得するには検索してください',
searchPlaceholderFormat: 'ユーザー名、メールアドレス${、:target}を検索',
searchPlaceholderGroupFormat: '${target}を検索',
outLimitTipFormat: '一度に最大 ${count} 人を追加できます',
outLimitDeptTipFormat: '一度に最大 ${count} 部門を選択',
clearText: 'クリア',
removeText: '削除する',
removeMemberText: 'メンバーを削除',
memberText: 'メンバー',
selectedText: '選択済み',
selectedFormat: '(合計 ${count} 人のメンバー)',
selectedStatisticsZero: '(合計 0)',
selectedStatisticsLabel: ' ${label},',
selectedStatisticsStart: '(合計 ',
selectedStatisticsEnd: ')'
}
},
VirtualTable: {
emptyText: "データがありません"
emptyText: 'データがありません'
}
};
export {
jaJP as default
};
export { jaJP as default };

@@ -47,2 +47,20 @@ import type { Locale as AntLocale } from 'antd/es/locale-provider';

}
export interface ToastLocale {
undo: string;
}
export interface TransferLocal extends NonNullable<AntLocale['Transfer']> {
clearAllText: string;
leftEmptyText: string;
notFoundContent?: string;
removeText: string;
rightEmptyText: string;
searchPlaceholder: string;
selectAllText: string;
selectedText: string;
sourceText: string;
targetText: string;
totalText: string;
toTopText: string;
brackets: string;
}
export interface TreeLocale {

@@ -78,2 +96,5 @@ emptyText: string;

andText: string;
condition: string;
emptyText: string;
whereText: string;
orText: string;

@@ -88,2 +109,3 @@ addText: string;

invalidField: string;
fieldPlaceholder: string;
}

@@ -142,2 +164,4 @@ export interface UploadLocale extends NonNullable<AntLocale['Upload']> {

Tabs?: TabsLocale;
Toast?: ToastLocale;
Transfer?: TransferLocal;
Tree?: TreeLocale;

@@ -144,0 +168,0 @@ Typography: TypographyLocale;

@@ -1,151 +0,160 @@

import { _ as _extends } from "./extends-d9a14db7.js";
import dayjs from "dayjs";
import "dayjs/locale/zh-cn.js";
import { _ as _extends } from './extends-e8fb2e5c.js';
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn.js';
const Pagination = {
// Options.jsx
items_per_page: "条/页",
jump_to: "跳至",
jump_to_confirm: "确定",
page: "页",
items_per_page: '条/页',
jump_to: '跳至',
jump_to_confirm: '确定',
page: '页',
// Pagination.jsx
prev_page: "上一页",
next_page: "下一页",
prev_5: "向前 5 页",
next_5: "向后 5 页",
prev_3: "向前 3 页",
next_3: "向后 3 页",
page_size: "页码"
prev_page: '上一页',
next_page: '下一页',
prev_5: '向前 5 页',
next_5: '向后 5 页',
prev_3: '向前 3 页',
next_3: '向后 3 页',
page_size: '页码'
};
var locale$2 = {
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: "下一世纪"
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: '下一世纪'
};
var locale$1 = {
placeholder: "请选择时间",
rangePlaceholder: ["开始时间", "结束时间"]
placeholder: '请选择时间',
rangePlaceholder: ['开始时间', '结束时间']
};
const TimePicker = locale$1;
var locale = {
lang: _extends({
placeholder: "请选择日期",
yearPlaceholder: "请选择年份",
quarterPlaceholder: "请选择季度",
monthPlaceholder: "请选择月份",
weekPlaceholder: "请选择周",
rangePlaceholder: ["开始日期", "结束日期"],
rangeYearPlaceholder: ["开始年份", "结束年份"],
rangeMonthPlaceholder: ["开始月份", "结束月份"],
rangeQuarterPlaceholder: ["开始季度", "结束季度"],
rangeWeekPlaceholder: ["开始周", "结束周"]
placeholder: '请选择日期',
yearPlaceholder: '请选择年份',
quarterPlaceholder: '请选择季度',
monthPlaceholder: '请选择月份',
weekPlaceholder: '请选择周',
rangePlaceholder: ['开始日期', '结束日期'],
rangeYearPlaceholder: ['开始年份', '结束年份'],
rangeMonthPlaceholder: ['开始月份', '结束月份'],
rangeQuarterPlaceholder: ['开始季度', '结束季度'],
rangeWeekPlaceholder: ['开始周', '结束周']
}, locale$2),
timePickerLocale: _extends({}, TimePicker)
};
locale.lang.ok = "确定";
}; // should add whitespace between char in Button
locale.lang.ok = '确定'; // All settings at:
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
const DatePicker = locale;
var typeTemplate = "${label}不是一个有效的${type}";
/* eslint-disable no-template-curly-in-string */
var typeTemplate = '${label}不是一个有效的${type}';
var localeValues = {
locale: "zh-cn",
Pagination,
DatePicker,
TimePicker,
locale: 'zh-cn',
Pagination: Pagination,
DatePicker: DatePicker,
TimePicker: TimePicker,
Calendar: DatePicker,
// locales for all components
global: {
placeholder: "请选择"
placeholder: '请选择'
},
Table: {
filterTitle: "筛选",
filterConfirm: "确定",
filterReset: "重置",
filterEmptyText: "无筛选项",
filterCheckall: "全选",
filterSearchPlaceholder: "在筛选项中搜索",
selectAll: "全选当页",
selectInvert: "反选当页",
selectNone: "清空所有",
selectionAll: "全选所有",
sortTitle: "排序",
expand: "展开行",
collapse: "关闭行",
triggerDesc: "点击降序",
triggerAsc: "点击升序",
cancelSort: "取消排序"
filterTitle: '筛选',
filterConfirm: '确定',
filterReset: '重置',
filterEmptyText: '无筛选项',
filterCheckall: '全选',
filterSearchPlaceholder: '在筛选项中搜索',
selectAll: '全选当页',
selectInvert: '反选当页',
selectNone: '清空所有',
selectionAll: '全选所有',
sortTitle: '排序',
expand: '展开行',
collapse: '关闭行',
triggerDesc: '点击降序',
triggerAsc: '点击升序',
cancelSort: '取消排序'
},
Modal: {
okText: "确定",
cancelText: "取消",
justOkText: "知道了"
okText: '确定',
cancelText: '取消',
justOkText: '知道了'
},
Popconfirm: {
cancelText: "取消",
okText: "确定"
cancelText: '取消',
okText: '确定'
},
Transfer: {
searchPlaceholder: "请输入搜索内容",
itemUnit: "项",
itemsUnit: "项",
remove: "删除",
selectCurrent: "全选当页",
removeCurrent: "删除当页",
selectAll: "全选所有",
removeAll: "删除全部",
selectInvert: "反选当页"
searchPlaceholder: '请输入搜索内容',
itemUnit: '项',
itemsUnit: '项',
remove: '删除',
selectCurrent: '全选当页',
removeCurrent: '删除当页',
selectAll: '全选所有',
removeAll: '删除全部',
selectInvert: '反选当页'
},
Upload: {
uploading: "文件上传中",
removeFile: "删除文件",
uploadError: "上传错误",
previewFile: "预览文件",
downloadFile: "下载文件"
uploading: '文件上传中',
removeFile: '删除文件',
uploadError: '上传错误',
previewFile: '预览文件',
downloadFile: '下载文件'
},
Empty: {
description: "暂无数据"
description: '暂无数据'
},
Icon: {
icon: "图标"
icon: '图标'
},
Text: {
edit: "编辑",
copy: "复制",
copied: "复制成功",
expand: "展开"
edit: '编辑',
copy: '复制',
copied: '复制成功',
expand: '展开'
},
PageHeader: {
back: "返回"
back: '返回'
},
Form: {
optional: "(可选)",
optional: '(可选)',
defaultValidateMessages: {
"default": "字段验证错误${label}",
required: "请输入${label}",
"enum": "${label}必须是其中一个[${enum}]",
whitespace: "${label}不能为空字符",
"default": '字段验证错误${label}',
required: '请输入${label}',
"enum": '${label}必须是其中一个[${enum}]',
whitespace: '${label}不能为空字符',
date: {
format: "${label}日期格式无效",
parse: "${label}不能转换为日期",
invalid: "${label}是一个无效日期"
format: '${label}日期格式无效',
parse: '${label}不能转换为日期',
invalid: '${label}是一个无效日期'
},

@@ -168,21 +177,21 @@ types: {

string: {
len: "${label}须为${len}个字符",
min: "${label}最少${min}个字符",
max: "${label}最多${max}个字符",
range: "${label}须在${min}-${max}字符之间"
len: '${label}须为${len}个字符',
min: '${label}最少${min}个字符',
max: '${label}最多${max}个字符',
range: '${label}须在${min}-${max}字符之间'
},
number: {
len: "${label}必须等于${len}",
min: "${label}最小值为${min}",
max: "${label}最大值为${max}",
range: "${label}须在${min}-${max}之间"
len: '${label}必须等于${len}',
min: '${label}最小值为${min}',
max: '${label}最大值为${max}',
range: '${label}须在${min}-${max}之间'
},
array: {
len: "须为${len}个${label}",
min: "最少${min}个${label}",
max: "最多${max}个${label}",
range: "${label}数量须在${min}-${max}之间"
len: '须为${len}个${label}',
min: '最少${min}个${label}',
max: '最多${max}个${label}',
range: '${label}数量须在${min}-${max}之间'
},
pattern: {
mismatch: "${label}与模式不匹配${pattern}"
mismatch: '${label}与模式不匹配${pattern}'
}

@@ -192,7 +201,8 @@ }

Image: {
preview: "预览"
preview: '预览'
}
};
const AntZhCN = localeValues;
dayjs.locale("zh-cn");
dayjs.locale('zh-cn');
const {

@@ -210,18 +220,18 @@ DatePicker: AntDatePicker,

...AntDatePicker.lang,
panelPlaceholder: "选择时间",
rangeSeparator: "至",
panelPlaceholder: '选择时间',
rangeSeparator: '至',
rangesLocale: {
today: "今天",
yesterday: "昨天",
tomorrow: "明天",
thisWeek: "本周",
thisMonth: "本月",
thisQuarter: "本季度",
thisYear: "今年",
beforeDaysFormat: "过去 ${count} 天",
afterDaysFormat: "未来 ${count} 天"
today: '今天',
yesterday: '昨天',
tomorrow: '明天',
thisWeek: '本周',
thisMonth: '本月',
thisQuarter: '本季度',
thisYear: '今年',
beforeDaysFormat: '过去 ${count} 天',
afterDaysFormat: '未来 ${count} 天'
},
popoverLocale: {
okText: "确定",
cancelText: "取消"
okText: '确定',
cancelText: '取消'
}

@@ -231,3 +241,3 @@ }

Dropdown: {
notFoundContent: "暂无匹配结果"
notFoundContent: '暂无匹配结果'
},

@@ -239,18 +249,18 @@ Form: {

string: {
len: "${label}须为 ${len} 个字符",
min: "${label}最少 ${min} 个字符",
max: "${label}最多 ${max} 个字符",
range: "${label}须在 ${min}-${max} 字符之间"
len: '${label}须为 ${len} 个字符',
min: '${label}最少 ${min} 个字符',
max: '${label}最多 ${max} 个字符',
range: '${label}须在 ${min}-${max} 字符之间'
},
number: {
len: "${label}必须等于 ${len}",
min: "${label}最小值为 ${min}",
max: "${label}最大值为 ${max}",
range: "${label}须在 ${min}-${max} 之间"
len: '${label}必须等于 ${len}',
min: '${label}最小值为 ${min}',
max: '${label}最大值为 ${max}',
range: '${label}须在 ${min}-${max} 之间'
},
array: {
len: "须为 ${len} 个${label}",
min: "最少 ${min} 个${label}",
max: "最多 ${max} 个${label}",
range: "${label}数量须在 ${min}-${max} 之间"
len: '须为 ${len} 个${label}',
min: '最少 ${min} 个${label}',
max: '最多 ${max} 个${label}',
range: '${label}数量须在 ${min}-${max} 之间'
}

@@ -260,102 +270,124 @@ }

Input: {
invalidText: "选项已失效"
invalidText: '选项已失效'
},
Layout: {
triggerOpenText: "展开侧边栏",
triggerCloseText: "折叠侧边栏"
triggerOpenText: '展开侧边栏',
triggerCloseText: '折叠侧边栏'
},
List: {
emptyText: "暂无数据"
emptyText: '暂无数据'
},
Loading: {
tip: "加载中..."
tip: '加载中...'
},
Percent: {
emptyText: "暂无数据"
emptyText: '暂无数据'
},
Popover: {
okText: "确定",
cancelText: "取消"
okText: '确定',
cancelText: '取消'
},
Result: {
cancelText: "关闭"
cancelText: '关闭'
},
Select: {
clearText: "清空已选内容",
notFoundContent: "暂无匹配结果",
invalidText: "选项已失效"
clearText: '清空已选内容',
notFoundContent: '暂无匹配结果',
invalidText: '选项已失效'
},
Tabs: {
moreText: "更多"
moreText: '更多'
},
Toast: {
undo: '撤销'
},
Transfer: {
clearAllText: '清空',
leftEmptyText: '暂无数据',
notFoundContent: '暂无匹配结果',
removeText: '移除',
rightEmptyText: '暂无数据,请在左侧选择',
searchPlaceholder: '搜索',
selectAllText: '全部',
selectedText: '已选',
sourceText: 'Source',
targetText: 'Target',
totalText: '(共 ${count} 项)',
toTopText: '置顶',
brackets: '(${text})'
},
Tree: {
emptyText: "暂无匹配结果",
searchPlaceholder: "搜索"
emptyText: '暂无匹配结果',
searchPlaceholder: '搜索'
},
Typography: {
copy: "复制"
copy: '复制'
},
Cascader: {
notFoundContent: "暂无匹配结果",
placeholder: "请选择"
notFoundContent: '暂无匹配结果',
placeholder: '请选择'
},
Menu: {
notFoundContent: "暂无匹配结果",
searchPlaceholder: "搜索"
notFoundContent: '暂无匹配结果',
searchPlaceholder: '搜索'
},
Filter: {
placeholder: {
select: "请选择",
input: "请输入"
select: '请选择',
input: '请输入'
},
operateLocale: {
EQ: "等于",
NEQ: "不等于",
GT: "大于",
GTE: "大于等于",
LT: "小于",
LTE: "小于等于",
BETWEEN: "介于",
RANGE: "介于",
INCLUDE: "包含",
EXCLUDE: "不包含",
MATCH: "包含",
NOT_MATCH: "不包含",
EMPTY: "为空",
SOME: "不为空",
ERROR: "错误"
EQ: '等于',
NEQ: '不等于',
GT: '大于',
GTE: '大于等于',
LT: '小于',
LTE: '小于等于',
BETWEEN: '介于',
RANGE: '介于',
INCLUDE: '包含',
EXCLUDE: '不包含',
MATCH: '包含',
NOT_MATCH: '不包含',
EMPTY: '为空',
SOME: '不为空',
ERROR: '错误'
},
andText: "且",
orText: "或",
addText: "添加条件",
negative: "负值",
to: "至",
addConditionGroup: "添加条件组",
invalidCondition: "当前筛选条件已失效",
nonExistentValue: "不存在的选项",
clearCondition: "清空条件",
invalidField: "当前属性已失效"
andText: '且',
whereText: '当',
orText: '或',
addText: '添加条件',
negative: '负值',
to: '至',
condition: '筛选条件',
addConditionGroup: '添加条件组',
invalidCondition: '当前筛选条件已失效',
nonExistentValue: '不存在的选项',
clearCondition: '清空条件',
invalidField: '当前属性已失效',
emptyText: '未设置筛选条件,请添加',
fieldPlaceholder: '请选择条件'
},
User: {
selectLocale: {
tooltipText: "选择成员、用户组、部门"
tooltipText: '选择成员、用户组、部门'
},
transferLocale: {
notFoundContent: "暂无匹配结果",
notFoundContentFormat: "暂无${target}",
restrictTipText: "请搜索以获取成员",
searchPlaceholderFormat: "搜索用户名、邮箱${、:target}",
searchPlaceholderGroupFormat: "搜索${target}",
outLimitTipFormat: "每次最多可添加 ${count} 人",
outLimitDeptTipFormat: "单次最多可选择 ${count} 个部门",
clearText: "清空",
removeText: "移除",
removeMemberText: "移除成员",
memberText: "成员",
selectedText: "已选",
selectedFormat: "(共 ${count} 个成员)",
selectedStatisticsZero: "(共 0 个)",
selectedStatisticsLabel: " 个${label},",
selectedStatisticsStart: "(共 ",
selectedStatisticsEnd: ")"
notFoundContent: '暂无匹配结果',
notFoundContentFormat: '暂无${target}',
restrictTipText: '请搜索以获取成员',
searchPlaceholderFormat: '搜索用户名、邮箱${、:target}',
searchPlaceholderGroupFormat: '搜索${target}',
outLimitTipFormat: '每次最多可添加 ${count} 人',
outLimitDeptTipFormat: '单次最多可选择 ${count} 个部门',
clearText: '清空',
removeText: '移除',
removeMemberText: '移除成员',
memberText: '成员',
selectedText: '已选',
selectedFormat: '(共 ${count} 个成员)',
selectedStatisticsZero: '(共 0 个)',
selectedStatisticsLabel: ' 个${label},',
selectedStatisticsStart: '(共 ',
selectedStatisticsEnd: ')'
}

@@ -365,20 +397,19 @@ },

...AntUpload,
uploading: "上传中...",
preview: "预览",
download: "下载",
remove: "删除",
cancel: "取消",
retry: "重试",
loadError: "加载失败",
upload: "上传",
uploadAttachment: "上传附件",
uploadError: "上传失败",
uploadImage: "上传图片"
uploading: '上传中...',
preview: '预览',
download: '下载',
remove: '删除',
cancel: '取消',
retry: '重试',
loadError: '加载失败',
upload: '上传',
uploadAttachment: '上传附件',
uploadError: '上传失败',
uploadImage: '上传图片'
},
VirtualTable: {
emptyText: "暂无数据"
emptyText: '暂无数据'
}
};
export {
zhCN as default
};
export { zhCN as default };
{
"name": "@ones-design/locale",
"version": "1.11.9",
"version": "1.14.1",
"description": "ONES Design",

@@ -54,5 +54,5 @@ "type": "module",

"devDependencies": {
"antd": "4.22.4"
"antd": "4.22.8"
},
"gitHead": "da98ddfde10aed34274bf29ad3de0e0ef7bb5d2e"
"gitHead": "52adda1ca18543fcd379610d86cf25b59a682582"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc