mirror of
https://github.com/outline/outline.git
synced 2026-01-06 11:09:55 -06:00
Handle promise linting (#5488)
This commit is contained in:
@@ -8,7 +8,7 @@ export function detectLanguage() {
|
||||
return `${ln}_${region}`;
|
||||
}
|
||||
|
||||
export function changeLanguage(
|
||||
export async function changeLanguage(
|
||||
toLanguageString: string | null | undefined,
|
||||
i18n: i18n
|
||||
) {
|
||||
@@ -19,7 +19,7 @@ export function changeLanguage(
|
||||
if (locale && i18n.languages?.[0] !== locale) {
|
||||
// Languages are stored in en_US format in the database, however the
|
||||
// frontend translation framework (i18next) expects en-US
|
||||
i18n.changeLanguage(locale);
|
||||
Desktop.bridge?.setSpellCheckerLanguages(["en-US", locale]);
|
||||
await i18n.changeLanguage(locale);
|
||||
await Desktop.bridge?.setSpellCheckerLanguages(["en-US", locale]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user