From f80cf3fbed01c7e89b83ace5d9df0334edc01135 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 15 May 2025 15:00:26 -0300 Subject: Setup i18n with gotext --- src/pds.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/pds.go') diff --git a/src/pds.go b/src/pds.go index b853530..9d14648 100644 --- a/src/pds.go +++ b/src/pds.go @@ -48,8 +48,12 @@ import ( "reflect" "sort" "strings" + + gt "gotext" ) + + // Vector is a dense, ordered, indexed collections. They are analogous to slices // in Go. They can be updated by appending to the end of the vector, prepending // values to the beginning of the vector, or updating existing indexes in the @@ -101,7 +105,9 @@ func (l *Vector[T]) cap() int { func (l *Vector[T]) Get(index int) T { if index < 0 || index >= l.size { panic(fmt.Sprintf( - "immutable.Vector.Get: index %d out of bounds", + gt.Gettext( + "immutable.Vector.Get: index %d out of bounds", + ), index, )) } -- cgit v1.2.3