message: Added in if statement
diff: @@ -355,8 +355,10 @@ export function setSpellCheckLanguages(preferredLangs: string[]) {
  export async function getAvailableSpellCheckLanguages(): Promise<string[]> {
  const plaf = PlatformPeg.get();
  + if (plaf) {
  return plaf.getAvailableSpellCheckLanguages();
  }
  +}
  export function getAllLanguagesFromJson() {
  return getLangsJson().then((langsObject) => {
  