add exported compat to fluent__bundle (#41101)

This commit is contained in:
James Nimlos
2019-12-18 06:10:26 -07:00
committed by Orta
parent c5a0afd1f4
commit 6410ae7e2b
4 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1 @@
compat.d.ts

1
types/fluent__bundle/compat.d.ts vendored Normal file
View File

@@ -0,0 +1 @@
export * from './index';

View File

@@ -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}`);

View File

@@ -20,6 +20,9 @@
"paths": {
"@fluent/bundle": [
"fluent__bundle"
],
"@fluent/bundle/compat": [
"fluent__bundle/compat"
]
}
},