- {isUnsupportedBrowser ? ( - <> - - Browser: {browserLangDisplay} (unsupported). Using English. - - - Browser: {browserLangDisplay} (not supported). Using English. - - > - ) : ( - <> - - Auto-switched to {currentLocale.toUpperCase()}. Use language - switcher for best experience. - - - Switched to {currentLocale.toUpperCase()}. Use switcher below - for best experience. - - > - )} -
-+ {t("title")} +
+ ++ {toastData.isSupported ? ( + <> + {t("browserLanguage")}:{" "} + + {browserName} + + {toastData.browserLang !== toastData.switchedTo ? ( + <> + {" "} + — {t("switchedTo")}{" "} + + {langName} + + > + ) : ( + <> + {" "} + —{" "} + + {t("matched")} + + > + )} + > + ) : ( + <> + {t("browser")}:{" "} + + {browserName} + {" "} + ({t("notSupported")}) — {t("using")}{" "} + + {langName} + + > + )} +
+ + {toastData.serverDetected && ( ++ + {t("serverDetected")} +
+ )} +{t("error")}
+ +