We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56ba5f8 commit d89861cCopy full SHA for d89861c
src_client/index.ts
@@ -171,7 +171,7 @@ const getLocale: (() => string) & {
171
* Throws if the given locale is not contained by the configured `sourceLocale`
172
* or `targetLocales`.
173
*/
174
-export const setLocale: ((newLocale: string) => void) & {
+const setLocale: ((newLocale: string) => void) & {
175
_LIT_LOCALIZE_SET_LOCALE_?: never;
176
} = (newLocale: string) => {
177
if (!configured || !validLocales || !loadLocale) {
@@ -213,6 +213,7 @@ export const setLocale: ((newLocale: string) => void) & {
213
}
214
);
215
216
+ return loading.promise;
217
};
218
219
/**
0 commit comments