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} */ /** @type {import('next-i18next').UserConfig} */
module.exports = { module.exports = {
i18n: { i18n: {
defaultLocale: "en", defaultLocale: "eo",
locales: [ locales: [
"eo", "eo",
"en", "en",

View File

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

View File

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