Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Browser tab title stays in English ("September 2026") for non-English users — `currentRoute` is a Ref in vue-router

Aperta Adatta ai principianti
#9,012 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
90/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript
Ambito
frontend

Direzione di ricerca

Inizia in src/services/windowTitleService.js, in particolare nell’handler di router.beforeEach e nel subscriber di settingsStore.$onAction che viene eseguito dopo che App.vue ha caricato il locale. Controlla come vue-router espone currentRoute e aggiorna il subscriber in modo che legga correttamente i parametri della route. Il lavoro è completato quando i titoli di mese, settimana e giorno usano il locale dell’utente dopo l’esecuzione di setMomentLocale.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Version: Calendar 6.6.1 (same code on main), Nextcloud 35.0.1, user language/locale ru / ru_RU

What happens

The page title shows the month in English — September 2026 - Calendar - … — while the whole UI,
including the month header inside the app, is localised. Week and day views behave the same way.

Why

src/services/windowTitleService.js:

  1. router.beforeEach formats the title with settingsStore.momentLocale. On the first navigation the
    settings store still holds its default momentLocale: 'en' — the real locale is loaded later by
    App.vue → loadMomentLocale() → setMomentLocale().
  2. The settingsStore.$onAction subscriber is meant to fix this when setMomentLocale runs, but it reads
    router.currentRoute.params. With vue-router 4/5 currentRoute is a Ref, so router.currentRoute.params
    is undefined, the if (!router.currentRoute.params?.firstDay) return guard always returns, and the title
    is never re-rendered.

Suggested fix

-		if (!router.currentRoute.params?.firstDay) {
+		if (!router.currentRoute.value.params?.firstDay) {
 			return
 		}
-		const date = getDateFromFirstdayParam(router.currentRoute.params.firstDay)
-		const view = router.currentRoute.params.view
+		const date = getDateFromFirstdayParam(router.currentRoute.value.params.firstDay)
+		const view = router.currentRoute.value.params.view

Verified on our instance by applying the equivalent change to the built calendar-main.js: titles become
сентябрь 2026, 40 неделя 2026 года, 28 сент. 2026 г. in month/week/day views.

Lingua principale
JavaScript
Stelle
1.2k
Fork
336
Merge medio
18h 9m
PR unite (30g)
99

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nextcloud/calendar

Tutte le issue di nextcloud/calendar

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.