UNPKG

2.2 kBJavaScriptView Raw
1/**
2 * Bootstrap Table English translation
3 * Author: Zhixin Wen<wenzhixin2010@gmail.com>
4 */
5
6$.fn.bootstrapTable.locales['ar-SA'] = {
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 `الظاهر ${pageFrom} إلى ${pageTo} من ${totalRows} سجل ${totalNotFiltered} total rows)`
16 }
17
18 return `الظاهر ${pageFrom} إلى ${pageTo} من ${totalRows} سجل`
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 () { /* eslint-disable no-useless-escape */
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 'All'
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['ar-SA'])