Skip to content

Commit d0a7f3c

Browse files
committed
update scope local example
1 parent a9f6c2a commit d0a7f3c

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

e2e/scope/local.test.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,24 @@
1010
await expect(page).toMatchElement('#app p', {
1111
text: 'こんにちは、世界!'
1212
})
13-
await expect(page).toMatchElement('#app div.child p', { text: 'Hi !' })
13+
await expect(page).toMatchElement('#app div.child p', {
14+
text: 'Hi there!'
15+
})
1416
})
1517

1618
test('change locale', async () => {
1719
// root
1820
await expect(page).toSelect('#app select', 'en')
1921
await expect(page).toMatchElement('#app p', { text: 'hello world!' })
20-
await expect(page).toMatchElement('#app div.child p', { text: 'Hi !' })
22+
await expect(page).toMatchElement('#app div.child p', {
23+
text: 'Hi there!'
24+
})
2125

2226
// Child
2327
await expect(page).toSelect('#app div.child select', 'ja')
2428
await expect(page).toMatchElement('#app p', { text: 'hello world!' })
2529
await expect(page).toMatchElement('#app div.child p', {
26-
text: 'こんにちは!'
30+
text: 'やあ!'
2731
})
2832
})
2933
})

examples/composable/scope/local.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ <h1>Child</h1>
4444
en: {
4545
message: {
4646
language: 'Language',
47-
hello: 'hello world!',
48-
hi: 'Hi !'
47+
hello: 'hello earth!',
48+
hi: 'Hi there!'
4949
}
5050
},
5151
ja: {
5252
message: {
5353
language: '言語',
54-
hello: 'こんにちは、世界!',
55-
hi: 'こんにちは!'
54+
hello: 'こんにちは、地球!',
55+
hi: 'やあ!'
5656
}
5757
}
5858
}

examples/legacy/scope/local.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ <h1>Child</h1>
4343
en: {
4444
message: {
4545
language: 'Language',
46-
hello: 'hello world!',
47-
hi: 'Hi !'
46+
hello: 'hello earth!',
47+
hi: 'Hi there!'
4848
}
4949
},
5050
ja: {
5151
message: {
5252
language: '言語',
53-
hello: 'こんにちは、世界!',
54-
hi: 'こんにちは!'
53+
hello: 'こんにちは、地球!',
54+
hi: 'やあ!'
5555
}
5656
}
5757
}

0 commit comments

Comments
 (0)