Skip to content

Commit 79688ab

Browse files
committed
Add Say#locales
1 parent a7c4026 commit 79688ab

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/integration/src/runtime.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ export class Say<
8989
return this.#messages.get(this.locale)!;
9090
}
9191

92+
/**
93+
* All available locales.
94+
*/
95+
get locales() {
96+
return this.#locales;
97+
}
98+
9299
/**
93100
* Loads messages for the given locales.
94101
* If no locales are provided, all available locales are loaded.
@@ -175,7 +182,7 @@ export class Say<
175182
}) as unknown as this;
176183
}
177184

178-
/**
185+
/**
179186
* Make this `Say` instance immutable.
180187
*/
181188
freeze() {

0 commit comments

Comments
 (0)