add exported compat to fluent__bundle (#41101)

This commit is contained in:
James Nimlos
2019-12-18 13:10:26 +00:00
committed by Orta
parent c5a0afd1f4
commit 6410ae7e2b
4 changed files with 7 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
compat.d.ts
+1
View File
@@ -0,0 +1 @@
export * from './index';
@@ -1,7 +1,9 @@
import { FluentBundle, FluentDateTime, FluentError, FluentNumber, FluentResource, Scope } from '@fluent/bundle';
import * as compat from '@fluent/bundle/compat';
// FluentBundle examples:
const bundle = new FluentBundle(['en-US']);
const compatBundle = new compat.FluentBundle(['en-US']);
// FluentResource examples:
const resource = new FluentResource(`test=Some other message with args arg1={$arg1} and arg2={$arg2}`);
+3
View File
@@ -20,6 +20,9 @@
"paths": {
"@fluent/bundle": [
"fluent__bundle"
],
"@fluent/bundle/compat": [
"fluent__bundle/compat"
]
}
},