File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,13 @@ import (
10
10
"context"
11
11
"testing"
12
12
13
+ _ "github.com/gogf/gf/v2/os/gres/testdata/data"
14
+
13
15
"github.com/gogf/gf/v2/debug/gdebug"
14
16
"github.com/gogf/gf/v2/frame/g"
15
17
"github.com/gogf/gf/v2/i18n/gi18n"
16
18
"github.com/gogf/gf/v2/os/gfile"
17
19
"github.com/gogf/gf/v2/os/gres"
18
- _ "github.com/gogf/gf/v2/os/gres/testdata/data"
19
20
"github.com/gogf/gf/v2/os/gtime"
20
21
"github.com/gogf/gf/v2/test/gtest"
21
22
"github.com/gogf/gf/v2/util/gconv"
@@ -133,6 +134,7 @@ func Test_Instance(t *testing.T) {
133
134
// Default language is: en
134
135
gtest .C (t , func (t * gtest.T ) {
135
136
m := gi18n .Instance (gconv .String (gtime .TimestampNano ()))
137
+ m .SetPath ("i18n-dir" )
136
138
t .Assert (m .T (context .Background (), "{#hello}{#world}" ), "HelloWorld" )
137
139
})
138
140
}
You can’t perform that action at this time.
0 commit comments