i18n: moon day label

This commit is contained in:
catarrh committed 2026-08-02 02:59:27 +03:00
1 parent c91302adf1
commit ec366f5681
2 files changed
+5 -1

No files matched your search

+4
View File
@@ -244,6 +244,7 @@ export interface Translations {
sunset: string; sunset: string;
moonPhase: string; moonPhase: string;
noLocation: string; noLocation: string;
moonDay: string;
}; };
// Services // Services
@@ -793,6 +794,7 @@ const translations: Record<LanguageCode, Translations> = {
sunset: 'Sunset', sunset: 'Sunset',
moonPhase: 'Moon', moonPhase: 'Moon',
noLocation: 'Set location in Settings', noLocation: 'Set location in Settings',
moonDay: 'day',
}, },
services: { services: {
@@ -1337,6 +1339,7 @@ const translations: Record<LanguageCode, Translations> = {
sunset: 'Закат', sunset: 'Закат',
moonPhase: 'Луна', moonPhase: 'Луна',
noLocation: 'Укажите местоположение в настройках', noLocation: 'Укажите местоположение в настройках',
moonDay: 'день',
}, },
services: { services: {
@@ -1881,6 +1884,7 @@ const translations: Record<LanguageCode, Translations> = {
sunset: 'Закатъ', sunset: 'Закатъ',
moonPhase: 'Лꙋна̀', moonPhase: 'Лꙋна̀',
noLocation: 'Оу҆кажі́те мѣстоположе́нїе въ настройкахъ', noLocation: 'Оу҆кажі́те мѣстоположе́нїе въ настройкахъ',
moonDay: 'де́нь',
}, },
services: { services: {
+1 -1
View File
@@ -953,7 +953,7 @@ export class CalendarView {
<span class="text-navy">${solar?.sunset ?? '—'}</span> <span class="text-navy">${solar?.sunset ?? '—'}</span>
<span class="mx-2 text-gold/40">|</span> <span class="mx-2 text-gold/40">|</span>
<span class="font-bold text-navy">${this.t.calendar.moonPhase}:</span> <span class="font-bold text-navy">${this.t.calendar.moonPhase}:</span>
<span class="text-navy">${moon.emoji} ${moonName} ${moon.trend === 'waxing' ? '↗' : '↘'} (day ${moon.moonDay}, ${phaseToFraction(moon.phase)}, ${moon.illumination}%)</span> <span class="text-navy">${moon.emoji} ${moonName} ${moon.trend === 'waxing' ? '↗' : '↘'} (${this.t.calendar.moonDay} ${moon.moonDay}, ${phaseToFraction(moon.phase)}, ${moon.illumination}%)</span>
`; `;
} else { } else {
astroPanel.innerHTML = `<span class="text-navy-light italic">${this.t.calendar.noLocation}</span>`; astroPanel.innerHTML = `<span class="text-navy-light italic">${this.t.calendar.noLocation}</span>`;