File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,23 @@ export function createFluentVue(options: FluentVueOptions): FluentVue {
151
151
}
152
152
} ,
153
153
154
+ get bundles ( ) {
155
+ return rootContext . bundles
156
+ } ,
157
+
158
+ set bundles ( value : FluentBundle [ ] ) {
159
+ rootContext . bundles = value
160
+ rootContext . refresh ( )
161
+
162
+ for ( const context of contexts . keys ( ) ) {
163
+ context . refresh ( )
164
+ }
165
+
166
+ for ( const subscriber of subscribers . keys ( ) ) {
167
+ subscriber . $forceUpdate ( )
168
+ }
169
+ } ,
170
+
154
171
install ( vue : typeof Vue ) {
155
172
return install ( vue , this , rootContext )
156
173
} ,
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ export interface IUpdatable {
13
13
14
14
export interface FluentVue {
15
15
locale : string | string [ ]
16
+ bundles : FluentBundle [ ]
16
17
17
18
install ( vue : VueConstructor < Vue > ) : void
18
19
You can’t perform that action at this time.
0 commit comments