Jump to content

Translate month and day on calendar and single event

Recommended Posts

9 hours ago, qcjacques said:

Site URL: https://vatnaaskirke.squarespace.com/kalender

Hello everybody,

I would like some help with translating into Norwegian,

- the month on the calendar

- day + month on the single events

On page: https://vatnaaskirke.squarespace.com/kalender

PW 3355

Thank you in advance!

Do you mean translate the following areas?


Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
  • 2 weeks later...

Hi @qcjacques and @DaniCal

You can change the English name of month to Norwegian on the calendar block with the help of below code.

    let en2nor = {
            January: "Januar",
            February: "Februar",
            March: "Mars",
            April: "April",
            May: "Mai",
            June: "Juni",
            July: "Juli",
            August: "August",
            September: "September",
            October: "Oktober",
            November: "November",
            December: "Desember",
        $target = $(".calendar-block h1 > div"),
        month = $target.text().split(" ")[0];

    $target.text($target.text().replace(month, en2nor[month]));

You need to put this code in the Code Injection FOOTER under Settings > Advanced.

Please note that it requires jQuery. Since it was already added to the reference website, you can skip the next step.

Add jQuery to your website by adding below code in the Code Injection HEADER under Settings > Advanced.

<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>

PS: This is my first attempt to answer a question here. I hope this helps 🙂 

Link to comment
On 4/6/2022 at 2:49 PM, qcjacques said:

I would like some help with translating into Norwegian

If you start a new Squarespace 7.1 trial today, it will now offer Norwegian (and Danish, Finnish and Swedish) as the site language - no code should be necessary. Take a look in Settings > Language & regionSite language.

However, if you have already started a site, it may be a few weeks before the support for these languages has been added, as they are rolled out in waves. 

About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!
If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.
Improve your online store with our extensions.

Link to comment
  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.