Skip to content

Commit

Permalink
Fix: translate month in year view
Browse files Browse the repository at this point in the history
Signed-off-by: hamza mahjoubi <[email protected]>
  • Loading branch information
hamza221 authored and backportbot-nextcloud[bot] committed Dec 21, 2023
1 parent acd5a0f commit 2d0f7b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fullcalendar/localization/localeProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
import { translate as t } from '@nextcloud/l10n'
import { translate as t, getLanguage } from '@nextcloud/l10n'
import {
getFirstDayOfWeekFromMomentLocale,
} from '../../utils/moment.js'
Expand All @@ -33,6 +33,7 @@ import {
const getFullCalendarLocale = () => {
return {
firstDay: getFirstDayOfWeekFromMomentLocale(),
locale: getLanguage(),
// TRANSLATORS W is an abbreviation for Week
weekText: t('calendar', 'W'),
allDayText: t('calendar', 'All day'),
Expand Down

0 comments on commit 2d0f7b2

Please sign in to comment.