~jadedctrl/jam-xwx-moe
Showing details for patch 2ee7e7a9dbed7a262f63414124523ad48299064b.
diff -rN -u old-jam-xwx-moe/pleroma-fe/0001-Implicita-lingvo-estu-Esperanto.patch new-jam-xwx-moe/pleroma-fe/0001-Implicita-lingvo-estu-Esperanto.patch --- old-jam-xwx-moe/pleroma-fe/0001-Implicita-lingvo-estu-Esperanto.patch 1970-01-01 00:00:00.000000000 +0000 +++ new-jam-xwx-moe/pleroma-fe/0001-Implicita-lingvo-estu-Esperanto.patch 2024-11-23 10:57:26.191372789 +0000 @@ -0,0 +1,32 @@ +From 714841ef1f7f79ffa14f19cd66d31e5652666e3c Mon Sep 17 00:00:00 2001 +From: jadedctrl <jadedctrl@Posteo.net> +Date: Sun, 30 Jul 2023 12:01:32 -0500 +Subject: [PATCH] Implicita lingvo estu Esperanto + +--- + src/boot/after_store.js | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/src/boot/after_store.js b/src/boot/after_store.js +index 9c1f007b..cb45b911 100644 +--- a/src/boot/after_store.js ++++ b/src/boot/after_store.js +@@ -1,3 +1,4 @@ ++import Cookies from 'js-cookie' + import { createApp } from 'vue' + import { createRouter, createWebHistory } from 'vue-router' + import vClickOutside from 'click-outside-vue3' +@@ -62,6 +63,10 @@ const getInstanceConfig = async ({ store }) => { + store.dispatch('setInstanceOption', { name: 'accountApprovalRequired', value: data.approval_required }) + store.dispatch('setInstanceOption', { name: 'birthdayRequired', value: !!data.pleroma.metadata.birthday_required }) + store.dispatch('setInstanceOption', { name: 'birthdayMinAge', value: data.pleroma.metadata.birthday_min_age || 0 }) ++ // don't override cookie if set ++ if (!Cookies.get('userLanguage')) { ++ store.dispatch('setOption', { name: 'interfaceLanguage', value: 'eo' }) ++ } + + if (vapidPublicKey) { + store.dispatch('setInstanceOption', { name: 'vapidPublicKey', value: vapidPublicKey }) +-- +2.40.1 +