1 |
|
2 | import Pagination from "rc-pagination/es/locale/ja_JP";
|
3 | import Calendar from '../calendar/locale/ja_JP';
|
4 | import DatePicker from '../date-picker/locale/ja_JP';
|
5 | import TimePicker from '../time-picker/locale/ja_JP';
|
6 | var typeTemplate = '${label}は有効な${type}ではありません';
|
7 | var localeValues = {
|
8 | locale: 'ja',
|
9 | Pagination: Pagination,
|
10 | DatePicker: DatePicker,
|
11 | TimePicker: TimePicker,
|
12 | Calendar: Calendar,
|
13 | Table: {
|
14 | filterTitle: 'フィルター',
|
15 | filterConfirm: 'OK',
|
16 | filterReset: 'リセット',
|
17 | filterEmptyText: 'フィルターなし',
|
18 | selectAll: 'ページ単位で選択',
|
19 | selectInvert: 'ページ単位で反転',
|
20 | selectionAll: 'すべてを選択',
|
21 | sortTitle: 'ソート',
|
22 | expand: '展開する',
|
23 | collapse: '折り畳む',
|
24 | triggerDesc: 'クリックで降順にソート',
|
25 | triggerAsc: 'クリックで昇順にソート',
|
26 | cancelSort: 'ソートをキャンセル'
|
27 | },
|
28 | Modal: {
|
29 | okText: 'OK',
|
30 | cancelText: 'キャンセル',
|
31 | justOkText: 'OK'
|
32 | },
|
33 | Popconfirm: {
|
34 | okText: 'OK',
|
35 | cancelText: 'キャンセル'
|
36 | },
|
37 | Transfer: {
|
38 | searchPlaceholder: 'ここを検索',
|
39 | itemUnit: 'アイテム',
|
40 | itemsUnit: 'アイテム'
|
41 | },
|
42 | Upload: {
|
43 | uploading: 'アップロード中...',
|
44 | removeFile: 'ファイルを削除',
|
45 | uploadError: 'アップロードエラー',
|
46 | previewFile: 'ファイルをプレビュー',
|
47 | downloadFile: 'ダウンロードファイル'
|
48 | },
|
49 | Empty: {
|
50 | description: 'データがありません'
|
51 | },
|
52 | Form: {
|
53 | defaultValidateMessages: {
|
54 | "default": '${label}のフィールド検証エラー',
|
55 | required: '${label}を入力してください',
|
56 | "enum": '${label}は[${enum}]のいずれかである必要があります',
|
57 | whitespace: '${label}は空白文字にすることはできません',
|
58 | date: {
|
59 | format: '${label}の日付形式は不正です',
|
60 | parse: '${label}は日付に変換できません',
|
61 | invalid: '${label}は不正な日付です'
|
62 | },
|
63 | types: {
|
64 | string: typeTemplate,
|
65 | method: typeTemplate,
|
66 | array: typeTemplate,
|
67 | object: typeTemplate,
|
68 | number: typeTemplate,
|
69 | date: typeTemplate,
|
70 | "boolean": typeTemplate,
|
71 | integer: typeTemplate,
|
72 | "float": typeTemplate,
|
73 | regexp: typeTemplate,
|
74 | email: typeTemplate,
|
75 | url: typeTemplate,
|
76 | hex: typeTemplate
|
77 | },
|
78 | string: {
|
79 | len: '${label}は${len}文字である必要があります',
|
80 | min: '${label}は${min}文字以上である必要があります',
|
81 | max: '${label}は${max}文字以下である必要があります',
|
82 | range: '${label}は${min}-${max}文字の範囲である必要があります'
|
83 | },
|
84 | number: {
|
85 | len: '${label}は${len}と等しい必要があります',
|
86 | min: '${label}の最小値は${min}です',
|
87 | max: '${label}の最大値は${max}です',
|
88 | range: '${label}は${min}-${max}の範囲である必要があります'
|
89 | },
|
90 | array: {
|
91 | len: '${label}は${len}である必要があります',
|
92 | min: '${label}の最小は${min}です',
|
93 | max: '${label}の最大は${max}です',
|
94 | range: '${label}の合計は${min}-${max}の範囲である必要があります'
|
95 | },
|
96 | pattern: {
|
97 | mismatch: '${label}はパターン${pattern}と一致しません'
|
98 | }
|
99 | }
|
100 | }
|
101 | };
|
102 | export default localeValues; |
\ | No newline at end of file |