UNPKG

2.21 kBJavaScriptView Raw
1/**
2 * Bootstrap Table Japanese translation
3 * Author: Azamshul Azizy <azamshul@gmail.com>
4 */
5
6$.fn.bootstrapTable.locales['ja-JP'] = {
7 formatLoadingMessage () {
8 return '読み込み中です。少々お待ちください。'
9 },
10 formatRecordsPerPage (pageNumber) {
11 return `ページ当たり最大${pageNumber}件`
12 },
13 formatShowingRows (pageFrom, pageTo, totalRows, totalNotFiltered) {
14 if (totalNotFiltered !== undefined && totalNotFiltered > 0 && totalNotFiltered > totalRows) {
15 return `全${totalRows}件から、${pageFrom}から${pageTo}件目まで表示しています (filtered from ${totalNotFiltered} total rows)`
16 }
17
18 return `全${totalRows}件から、${pageFrom}から${pageTo}件目まで表示しています`
19 },
20 formatSRPaginationPreText () {
21 return 'previous page'
22 },
23 formatSRPaginationPageText (page) {
24 return `to page ${page}`
25 },
26 formatSRPaginationNextText () {
27 return 'next page'
28 },
29 formatDetailPagination (totalRows) {
30 return `Showing ${totalRows} rows`
31 },
32 formatClearSearch () {
33 return 'Clear Search'
34 },
35 formatSearch () {
36 return '検索'
37 },
38 formatNoMatches () {
39 return '該当するレコードが見つかりません'
40 },
41 formatPaginationSwitch () {
42 return 'ページ数を表示・非表示'
43 },
44 formatPaginationSwitchDown () {
45 return 'Show pagination'
46 },
47 formatPaginationSwitchUp () {
48 return 'Hide pagination'
49 },
50 formatRefresh () {
51 return '更新'
52 },
53 formatToggle () {
54 return 'トグル'
55 },
56 formatToggleOn () {
57 return 'Show card view'
58 },
59 formatToggleOff () {
60 return 'Hide card view'
61 },
62 formatColumns () {
63 return '列'
64 },
65 formatColumnsToggleAll () {
66 return 'Toggle all'
67 },
68 formatFullscreen () {
69 return 'Fullscreen'
70 },
71 formatAllRows () {
72 return 'すべて'
73 },
74 formatAutoRefresh () {
75 return 'Auto Refresh'
76 },
77 formatExport () {
78 return 'Export data'
79 },
80 formatJumpTo () {
81 return 'GO'
82 },
83 formatAdvancedSearch () {
84 return 'Advanced search'
85 },
86 formatAdvancedCloseButton () {
87 return 'Close'
88 }
89}
90
91$.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['ja-JP'])