mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 20:21:46 +00:00
feat(fluent): add locales to FluentBundle (#36173)
This commit is contained in:
@@ -48,3 +48,5 @@ for (const [id, message] of bundle1.messages) {
|
||||
bundle1.getMessage(id);
|
||||
bundle1.format(message);
|
||||
}
|
||||
|
||||
Array.isArray(bundle4.locales);
|
||||
|
||||
Vendored
+1
@@ -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[];
|
||||
|
||||
Reference in New Issue
Block a user