mirror of
				https://github.com/louislam/uptime-kuma.git
				synced 2025-11-04 13:46:13 +08:00 
			
		
		
		
	Enable localization for pagination
This commit is contained in:
		@@ -181,6 +181,7 @@
 | 
			
		||||
                        v-model="page"
 | 
			
		||||
                        :records="importantHeartBeatList.length"
 | 
			
		||||
                        :per-page="perPage"
 | 
			
		||||
                        :options="paginationConfig"
 | 
			
		||||
                    />
 | 
			
		||||
                </div>
 | 
			
		||||
            </div>
 | 
			
		||||
@@ -237,6 +238,17 @@ export default {
 | 
			
		||||
            heartBeatList: [],
 | 
			
		||||
            toggleCertInfoBox: false,
 | 
			
		||||
            showPingChartBox: true,
 | 
			
		||||
            paginationConfig: {
 | 
			
		||||
                texts:{
 | 
			
		||||
                    count:`${this.$t("Showing {from} to {to} of {count} records")}|{count} ${this.$t("records")}|${this.$t("One record")}`,
 | 
			
		||||
                    first:this.$t("First"),
 | 
			
		||||
                    last:this.$t("Last"),
 | 
			
		||||
                    nextPage:'>',
 | 
			
		||||
                    nextChunk:'>>',
 | 
			
		||||
                    prevPage:'<',
 | 
			
		||||
                    prevChunk:'<<'
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    computed: {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user