feat(fluent): add locales to FluentBundle (#36173)

This commit is contained in:
Colin Cheng
2019-06-16 00:51:18 -07:00
committed by Ron Buckton
parent 3b6b34d979
commit 715445febc
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -48,3 +48,5 @@ for (const [id, message] of bundle1.messages) {
bundle1.getMessage(id);
bundle1.format(message);
}
Array.isArray(bundle4.locales);
+1
View File
@@ -28,6 +28,7 @@ export class FluentResource extends Map {
export class FluentBundle {
constructor(locales: string | string[], options?: FluentBundleContructorOptions);
locales: string[];
messages: IterableIterator<[string, FluentNode[]]>;
hasMessage(source: string): boolean;
addMessages(source: string): string[];