Skip to content

Commit

Permalink
Merge pull request #581 from BloomBooks/BL14280_DisplayUnlisted
Browse files Browse the repository at this point in the history
Display "Unlisted Language (qaa)", not blank in language grid (BL-14280)
  • Loading branch information
andrew-polk authored Feb 6, 2025
2 parents 054ae22 + 0d5eaf4 commit 7e60f10
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/AggregateGrid/AggregateGridPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,14 @@ export function getLangTagDataForIrregularLangCode(
langTagData.region = tagData.region;
langTagData.regionname = tagData.regionname;
}
} else if (code === "qaa") {
// Note that tags like qaa-x-Chalchiteko have already had their names set above.
langTagData.name = "Unlisted Language (qaa)";
} else if (!langTagData.name) {
console.error(
`We could not determine a name for language code ${code}`
);
langTagData.name = `Unknown Language (${code})`;
}
return langTagData;
}
Expand Down

0 comments on commit 7e60f10

Please sign in to comment.