forgejo/modules
wxiaoguang 7681d582cd
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>

![image](https://user-images.githubusercontent.com/2114189/232179420-b1b9974b-9d96-4408-b209-b80182c8b359.png)


![image](https://user-images.githubusercontent.com/2114189/232179416-14f36aa0-3f3e-4ac9-b366-7bd3a4464a11.png)

</details>
2023-04-17 11:37:23 +08:00
..
actions Fix mismatch between hook events and github event types (#24048) 2023-04-12 12:16:47 -04:00
activitypub
analyze
assetfs Use a general approach to access custom/static/builtin assets (#24022) 2023-04-12 18:16:45 +08:00
auth Use a general approach to access custom/static/builtin assets (#24022) 2023-04-12 18:16:45 +08:00
avatar
base Use a general Eval function for expressions in templates. (#23927) 2023-04-07 21:25:49 +08:00
cache Update redis library to support redis v7 (#24114) 2023-04-13 18:41:04 -04:00
charset Refactor locale number (#24134) 2023-04-17 11:37:23 +08:00
container
context Show friendly 500 error page to users and developers (#24110) 2023-04-14 13:19:11 +08:00
csv Refactor locale number (#24134) 2023-04-17 11:37:23 +08:00
doctor Use a general approach to access custom/static/builtin assets (#24022) 2023-04-12 18:16:45 +08:00
emoji
eventsource
generate
git Improve git log for debugging (#24095) 2023-04-13 19:17:27 -04:00
gitgraph
graceful
hcaptcha
highlight test_env: hardcode major go version in use (#23464) 2023-03-14 16:09:01 -04:00
hostmatcher
html
httpcache Set X-Gitea-Debug header once (#23361) 2023-03-08 15:40:04 -05:00
httplib Refactor internal API for git commands, use meaningful messages instead of "Internal Server Error" (#23687) 2023-03-29 14:32:26 +08:00
indexer Fix meilisearch not working when searching across multiple repositories (#24109) 2023-04-14 13:27:11 -04:00
issue/template
json
label Make label templates have consistent behavior and priority (#23749) 2023-04-10 16:44:02 +08:00
lfs Make minio package support legacy MD5 checksum (#23768) 2023-03-28 11:10:24 -04:00
log
markup Append (comment) when a link points at a comment rather than the whole issue (#23734) 2023-04-03 16:02:57 +08:00
mcaptcha
metrics
migration
mirror
nosql Update redis library to support redis v7 (#24114) 2023-04-13 18:41:04 -04:00
notification
options Use a general approach to access custom/static/builtin assets (#24022) 2023-04-12 18:16:45 +08:00
packages Display image size for multiarch container images (#23821) 2023-04-02 17:53:37 +08:00
paginator
pprof
private Refactor internal API for git commands, use meaningful messages instead of "Internal Server Error" (#23687) 2023-03-29 14:32:26 +08:00
process
proxy
proxyprotocol
public Use a general approach to access custom/static/builtin assets (#24022) 2023-04-12 18:16:45 +08:00
queue Update redis library to support redis v7 (#24114) 2023-04-13 18:41:04 -04:00
recaptcha
references
regexplru
repository Use a general approach to access custom/static/builtin assets (#24022) 2023-04-12 18:16:45 +08:00
secret
session Update redis library to support redis v7 (#24114) 2023-04-13 18:41:04 -04:00
setting Refactor cookie (#24107) 2023-04-13 15:45:33 -04:00
sitemap
ssh
storage Make minio package support legacy MD5 checksum (#23768) 2023-03-28 11:10:24 -04:00
structs Add activity feeds API (#23494) 2023-04-04 21:35:31 +08:00
svg Use a general approach to access custom/static/builtin assets (#24022) 2023-04-12 18:16:45 +08:00
sync
system
templates Refactor locale number (#24134) 2023-04-17 11:37:23 +08:00
test Refactor locale number (#24134) 2023-04-17 11:37:23 +08:00
timeutil Remove untranslatable on_date key (#24106) 2023-04-15 13:01:54 +02:00
translation Refactor locale number (#24134) 2023-04-17 11:37:23 +08:00
turnstile
typesniffer Do not recognize text files as audio (#23355) 2023-03-07 22:40:41 -05:00
updatechecker
upload
uri
user
util Use a general approach to access custom/static/builtin assets (#24022) 2023-04-12 18:16:45 +08:00
validation
web Refactor cookie (#24107) 2023-04-13 15:45:33 -04:00
webhook