Commit 9af40bb 1 parent 6389570 commit 9af40bb Copy full SHA for 9af40bb
File tree 3 files changed +4
-2
lines changed
3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 8
8
name : Test
9
9
runs-on : ${{ matrix.platform }}
10
10
env :
11
- RUST_I18N_DEBUG : 1
11
+ RUST_I18N_DEBUG : 0
12
12
steps :
13
13
- uses : actions/checkout@v3
14
14
- name : Setup | Cache Cargo
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ release\:cli:
9
9
release :
10
10
cargo release
11
11
test :
12
+ cargo test -p rust-i18n test_set_locale_on_initialize
12
13
cargo test --workspace
13
14
cargo test --manifest-path examples/app-workspace/Cargo.toml --workspace
14
15
cargo test --manifest-path examples/share-in-workspace/Cargo.toml --workspace
Original file line number Diff line number Diff line change @@ -316,8 +316,9 @@ mod tests {
316
316
) ;
317
317
}
318
318
319
+ // https://github.com/longbridgeapp/rust-i18n/issues/87
319
320
#[ test]
320
- fn test_set_locale ( ) {
321
+ fn test_set_locale_on_initialize ( ) {
321
322
rust_i18n:: set_locale ( "zh-CN" ) ;
322
323
for _ in 0 ..5 {
323
324
assert_eq ! ( t!( "hello" ) , "Bar - 你好世界!" ) ;
You can’t perform that action at this time.
0 commit comments