You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules/charset
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>
1 year ago
..
ambiguous Implement FSFE REUSE for golang files (#21840) 2 years ago
invisible Implement FSFE REUSE for golang files (#21840) 2 years ago
ambiguous.go Ensure that Chinese punctuation is not ambiguous when locale is Chinese (#22019) 2 years ago
ambiguous_gen.go Implement FSFE REUSE for golang files (#21840) 2 years ago
ambiguous_gen_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
breakwriter.go Implement FSFE REUSE for golang files (#21840) 2 years ago
breakwriter_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
charset.go Implement FSFE REUSE for golang files (#21840) 2 years ago
charset_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
escape.go Fix line spacing for plaintext previews (#22699) 1 year ago
escape_status.go Implement FSFE REUSE for golang files (#21840) 2 years ago
escape_stream.go Use data-tooltip-content for tippy tooltip (#23649) 1 year ago
escape_test.go Refactor locale number (#24134) 1 year ago
htmlstream.go Implement FSFE REUSE for golang files (#21840) 2 years ago
invisible_gen.go Implement FSFE REUSE for golang files (#21840) 2 years ago