File tree 2 files changed +2
-4
lines changed 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ export default {
7
7
8
8
if ( options . fluent && options . fluent instanceof FluentVue ) {
9
9
this . _fluent = options . fluent
10
- } else if ( this . $root && this . $root . $fluent && this . $root . $fluent instanceof FluentVue ) {
11
- this . _fluent = this . $root . $fluent
12
10
} else if (
13
11
options . parent &&
14
12
options . parent . $fluent &&
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ describe('fluent', () => {
14
14
welcome = Welcome, { $name }, to { -brand-name }!
15
15
` )
16
16
)
17
- const helloUser = bundle . getMessage ( 'welcome' )
17
+ const helloUser = bundle . getMessage ( 'welcome' ) as any
18
18
19
19
// Act
20
20
const message = bundle . formatPattern ( helloUser . value , { name : 'John' } )
@@ -39,7 +39,7 @@ describe('fluent', () => {
39
39
}.
40
40
` )
41
41
)
42
- const sharedPhotos = bundle . getMessage ( 'shared-photos' )
42
+ const sharedPhotos = bundle . getMessage ( 'shared-photos' ) as any
43
43
44
44
// Act
45
45
const message = bundle . formatPattern ( sharedPhotos . value , {
You can’t perform that action at this time.
0 commit comments