mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 19:06:18 +01:00 
			
		
		
		
	Localize time units on activity heatmap (#21570)
Previously, the months and days were hardcoded into English * Closes #15541 ## Screenshots ### English  ### German  ### Spanish  ### Italian  ### Portuguese This one has a bit of overflow  Signed-off-by: Yarden Shoham <hrsi88@gmail.com> Co-authored-by: Gusted <williamzijl7@hotmail.com> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
		| @@ -25,6 +25,10 @@ export default { | ||||
|       type: Array, | ||||
|       default: () => [], | ||||
|     }, | ||||
|     locale: { | ||||
|       type: Object, | ||||
|       default: () => {}, | ||||
|     } | ||||
|   }, | ||||
|   data: () => ({ | ||||
|     colorRange: [ | ||||
| @@ -36,10 +40,6 @@ export default { | ||||
|       'var(--color-primary-dark-4)', | ||||
|     ], | ||||
|     endDate: new Date(), | ||||
|     locale: { | ||||
|       contributions: 'contributions', | ||||
|       no_contributions: 'No contributions', | ||||
|     }, | ||||
|   }), | ||||
|   computed: { | ||||
|     sum() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user