diff --git a/.github/scripts/download-translations.js b/.github/scripts/download-translations.js index d444aeb8e..8f35be0de 100644 --- a/.github/scripts/download-translations.js +++ b/.github/scripts/download-translations.js @@ -76,8 +76,7 @@ async function downloadTranslations() { // Determine the output filename based on language const normalizedLanguage = normalizeLanguageCode(language); - const filename = - normalizedLanguage === "en" ? "gb.json" : `${normalizedLanguage}.json`; + const filename = `${normalizedLanguage}.json`; const outputPath = path.join(process.cwd(), "temp", filename); await fs.writeJson(outputPath, formattedTranslations, { spaces: 2 }); diff --git a/client/src/Components/LanguageSelector.jsx b/client/src/Components/LanguageSelector.jsx index 1552bde82..66faf78ac 100644 --- a/client/src/Components/LanguageSelector.jsx +++ b/client/src/Components/LanguageSelector.jsx @@ -21,60 +21,7 @@ const LanguageSelector = () => { value={language} onChange={handleChange} size="small" - sx={{ - height: 28, - width: 64, - backgroundColor: theme.palette.primary.main, - color: theme.palette.primary.contrastText, - borderRadius: theme.shape.borderRadius, - fontSize: 10, - "& .MuiOutlinedInput-notchedOutline": { - borderColor: theme.palette.primary.lowContrast, - borderRadius: theme.shape.borderRadius, - }, - "&:hover .MuiOutlinedInput-notchedOutline": { - borderColor: theme.palette.primary.lowContrast, - }, - "&.Mui-focused .MuiOutlinedInput-notchedOutline": { - borderColor: theme.palette.primary.lowContrast, - }, - "& .MuiSvgIcon-root": { - color: theme.palette.primary.contrastText, - width: 16, - height: 16, - right: 4, - top: "calc(50% - 8px)", - }, - "& .MuiSelect-select": { - padding: "2px 20px 2px 8px", - display: "flex", - alignItems: "center", - fontSize: 10, - }, - }} - MenuProps={{ - PaperProps: { - sx: { - backgroundColor: theme.palette.primary.main, - borderRadius: theme.shape.borderRadius, - marginTop: 1, - width: 64, - "& .MuiMenuItem-root": { - padding: "2px 8px", - minHeight: 28, - fontSize: 10, - }, - }, - }, - anchorOrigin: { - vertical: "bottom", - horizontal: "left", - }, - transformOrigin: { - vertical: "top", - horizontal: "left", - }, - }} + sx={{ minWidth: 80 }} > {languages.map((lang) => { let parsedLang = lang === "en" ? "gb" : lang; @@ -94,45 +41,24 @@ const LanguageSelector = () => { {flag && } {lang}