mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Refactor locale number (#24134)
Before, the `GiteaLocaleNumber.js` was just written as a a drop-in replacement for old `js-pretty-number`. Actually, we can use Golang's `text` package to format. This PR partially completes the TODOs in `GiteaLocaleNumber.js`: > if we have complete backend locale support (eg: Golang "x/text" package), we can drop this component. > tooltip: only 2 usages of this, we can replace it with Golang's "x/text/number" package in the future. This PR also helps #24131 Screenshots: <details>   </details>
This commit is contained in:
		@@ -1,4 +1,3 @@
 | 
			
		||||
import '@webcomponents/custom-elements'; // polyfill for some browsers like Pale Moon
 | 
			
		||||
import '@github/relative-time-element';
 | 
			
		||||
import './GiteaLocaleNumber.js';
 | 
			
		||||
import './GiteaOriginUrl.js';
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user