Skip to content

Commit d89861c

Browse files
committed
Fix bad merge conflict with setLocale
1 parent 56ba5f8 commit d89861c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src_client/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ const getLocale: (() => string) & {
171171
* Throws if the given locale is not contained by the configured `sourceLocale`
172172
* or `targetLocales`.
173173
*/
174-
export const setLocale: ((newLocale: string) => void) & {
174+
const setLocale: ((newLocale: string) => void) & {
175175
_LIT_LOCALIZE_SET_LOCALE_?: never;
176176
} = (newLocale: string) => {
177177
if (!configured || !validLocales || !loadLocale) {
@@ -213,6 +213,7 @@ export const setLocale: ((newLocale: string) => void) & {
213213
}
214214
);
215215
}
216+
return loading.promise;
216217
};
217218

218219
/**

0 commit comments

Comments
 (0)