Preferu Esperanton je paĝestigoj

Agordas Esperanton kiel la implicita lingvo de
paĝestigilo, kaj certigas ke specialaj paĝoj
saluta k registriĝa uzu Esperanton.
This commit is contained in:
Jaidyn Ann 2025-01-05 10:52:48 -06:00
parent f4d5135453
commit c72f3d55d9
Signed by: jadedctrl
GPG Key ID: FEF4FCF78B4BF019
3 changed files with 3 additions and 7 deletions

View File

@ -1,7 +1,7 @@
/** @type {import('next-i18next').UserConfig} */
module.exports = {
i18n: {
defaultLocale: "en",
defaultLocale: "eo",
locales: [
"eo",
"en",

View File

@ -300,9 +300,7 @@ const getServerSideProps: GetServerSideProps = async (ctx) => {
?.split(",")
.map((lang) => lang.split(";")[0]);
let bestMatch = acceptedLanguages?.find((lang) =>
availableLanguages.includes(lang)
);
let bestMatch = "eo";
if (!bestMatch) {
acceptedLanguages?.some((acceptedLang) => {

View File

@ -347,9 +347,7 @@ const getServerSideProps: GetServerSideProps = async (ctx) => {
?.split(",")
.map((lang) => lang.split(";")[0]);
let bestMatch = acceptedLanguages?.find((lang) =>
availableLanguages.includes(lang)
);
let bestMatch = "eo";
if (!bestMatch) {
acceptedLanguages?.some((acceptedLang) => {