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:
parent
f4d5135453
commit
c72f3d55d9
|
@ -1,7 +1,7 @@
|
|||
/** @type {import('next-i18next').UserConfig} */
|
||||
module.exports = {
|
||||
i18n: {
|
||||
defaultLocale: "en",
|
||||
defaultLocale: "eo",
|
||||
locales: [
|
||||
"eo",
|
||||
"en",
|
||||
|
|
|
@ -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) => {
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Ŝarĝante…
Reference in New Issue