Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
046b500
Tune the Chinese version of README (#303)
tengqm Oct 5, 2023
8468a67
extract: support typed string constants (#304)
hectorj-thetreep Oct 5, 2023
0d56550
Fix Localize regression with empty default message (#305)
KuSh Oct 23, 2023
8c53670
Export fields in MessageNotFoundErr (#306) (#307)
stephenafamo Nov 18, 2023
1baa95c
Use correct plural forms when merging translations (#309)
stephenafamo Nov 28, 2023
e003cf6
Update to CLDR data v44 (#310)
nicksnyder Dec 3, 2023
baaace5
Remove usage of deprecated io/ioutil and upgrade to Go 1.16 (#308)
stephenafamo Dec 3, 2023
3dbe91f
Upgrade dependencies and upgrade Go to 1.18 (#311)
nicksnyder Dec 3, 2023
4a6aac0
Fix Codecov link
nicksnyder Dec 3, 2023
3bade0d
Update .codecov.yml
nicksnyder Dec 3, 2023
81be054
Update Codecov action to v3 (#312)
nicksnyder Dec 3, 2023
687a6e6
Update .codecov.yml
nicksnyder Dec 3, 2023
58f6470
use Codecov token
nicksnyder Dec 3, 2023
6d2b3f3
Create golangci-lint.yml (#313)
nicksnyder Dec 5, 2023
02c86dc
remove .golangci.yml (#314)
nicksnyder Dec 5, 2023
10e9a87
t.Fatal instead of panic in test
nicksnyder Dec 5, 2023
6c679f5
Update .codecov.yml
nicksnyder Dec 5, 2023
1c9134a
remove deprecated use of ioutil
nicksnyder Dec 5, 2023
7ef1f3a
Support configurable template parsers (#317)
nicksnyder Jan 31, 2024
5ffc44f
Remove v2 directory (#318)
nicksnyder Jan 31, 2024
dba591e
Fix readme links
nicksnyder Jan 31, 2024
509c911
fix typo (#324)
sunxunle Mar 16, 2024
50ae142
fallback to empty string message `""` when get nil value (#326)
LemonNekoGH Mar 31, 2024
df8fc81
chore: update yaml version (#330)
leverz Aug 16, 2024
4020eef
fix: option in TextParser is not used (#335)
cazeaux Oct 12, 2024
26655f5
move badges below title
nicksnyder Oct 12, 2024
c5fe953
Translation disclaimer
nicksnyder Oct 12, 2024
14cdc64
Update golang.org/x/text to v0.19.0
nicksnyder Oct 13, 2024
39be25a
add number key test
nicksnyder Oct 13, 2024
c856659
Upgrade codecov action to v4 (#337)
nicksnyder Oct 13, 2024
36ea6b1
Create dependabot.yml
nicksnyder Oct 13, 2024
b743062
Bump actions/setup-go from 2 to 5 (#341)
dependabot[bot] Oct 13, 2024
da0d29d
Bump actions/checkout from 1 to 4 (#339)
dependabot[bot] Oct 13, 2024
356a2ce
Bump golangci/golangci-lint-action from 3 to 6 (#340)
dependabot[bot] Oct 13, 2024
d93302b
Bump goreleaser/goreleaser-action from 2 to 6 (#342)
dependabot[bot] Oct 13, 2024
8240af3
Better build step condition (#344)
nicksnyder Oct 13, 2024
fef9fd8
Use stable Go version in all workflows (#343)
nicksnyder Oct 13, 2024
602abd1
switch to scip (#345)
nicksnyder Oct 13, 2024
404e893
correct report card badge
nicksnyder Oct 13, 2024
d37f00e
Error if reserved message keys are mixed with unreserved keys (#320)
nicksnyder Oct 13, 2024
eac8413
Create README.uk-UA.md (#336)
dejurin Oct 14, 2024
99154fd
Bump golang.org/x/text from 0.19.0 to 0.20.0 (#351)
dependabot[bot] Dec 1, 2024
24ad8fd
Bump golang.org/x/text from 0.20.0 to 0.21.0 (#354)
dependabot[bot] Jan 1, 2025
67b81d2
Add convenience function `MustLocalizeMessage` (#352)
apricotbucket28 Jan 12, 2025
ef03618
Fix case sensitivity with message keys (#358)
nicksnyder Feb 2, 2025
014e57e
Extract errors for duplicate message ids (#359)
nicksnyder Feb 2, 2025
76829ee
Go 1.24 and golangci-lint v2.0 (#369)
nicksnyder Apr 5, 2025
f68eae6
chore: fix typo in comment (#365)
luozexuan Apr 5, 2025
fd9b759
Bump github.com/BurntSushi/toml from 1.4.0 to 1.5.0 (#366)
dependabot[bot] Apr 5, 2025
542de09
CLDR v47 (#370)
nicksnyder Apr 5, 2025
c12311a
Require go 1.23 (#371)
nicksnyder Apr 5, 2025
1731feb
Bump golang.org/x/text from 0.21.0 to 0.23.0 (#367)
dependabot[bot] Apr 5, 2025
460c22b
Bump codecov/codecov-action from 4 to 5 (#350)
dependabot[bot] Apr 5, 2025
95ac07a
delete broken job
nicksnyder Apr 5, 2025
0e87ba1
delete broken badge
nicksnyder Apr 5, 2025
d62470d
go mod tidy
nicksnyder Apr 5, 2025
3ec13bc
fix typo
nicksnyder Apr 5, 2025
ad901e0
Bump golang.org/x/text from 0.23.0 to 0.24.0 (#372)
dependabot[bot] May 2, 2025
14f9078
Bump golang.org/x/text from 0.24.0 to 0.25.0 (#374)
dependabot[bot] Jun 9, 2025
8e494a8
Bump golang.org/x/text from 0.25.0 to 0.26.0 (#377)
dependabot[bot] Jul 1, 2025
b1f066d
Bump golang.org/x/text from 0.26.0 to 0.27.0 (#378)
dependabot[bot] Aug 1, 2025
81c47cd
Bump golang.org/x/text from 0.27.0 to 0.28.0 (#380)
dependabot[bot] Sep 2, 2025
a396999
Bump golang.org/x/text from 0.28.0 to 0.29.0 (#382)
dependabot[bot] Oct 1, 2025
546490a
Temporary update module path
bep Oct 18, 2025
5fa0619
Trim the Github actions
bep Oct 18, 2025
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
t.Fatal instead of panic in test
  • Loading branch information
nicksnyder authored and bep committed Oct 18, 2025
commit 10e9a87998086b1b7a25c7188952a24141da7d68
4 changes: 2 additions & 2 deletions v2/i18n/message_template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import (
func TestMessageTemplate(t *testing.T) {
mt := NewMessageTemplate(&Message{ID: "HelloWorld", Other: "Hello World"})
if mt.PluralTemplates[plural.Other].Src != "Hello World" {
panic(mt.PluralTemplates)
t.Fatal(mt.PluralTemplates)
}
}

func TestNilMessageTemplate(t *testing.T) {
if mt := NewMessageTemplate(&Message{ID: "HelloWorld"}); mt != nil {
panic(mt)
t.Fatal(mt)
}
}

Expand Down