Translate the whole site to English: English routes with 301 redirects from the Dutch paths, English UI, docs, seeds and captions, one-time live content migration
This commit is contained in:
@@ -3,10 +3,10 @@ import { Poller } from "./Poller.js";
|
||||
|
||||
export class LocalTime {
|
||||
constructor() {
|
||||
this.dateFormat = new Intl.DateTimeFormat("nl-NL", { day: "2-digit", month: "2-digit", year: "numeric" });
|
||||
this.timeFormat = new Intl.DateTimeFormat("nl-NL", { hour: "2-digit", minute: "2-digit" });
|
||||
this.fullFormat = new Intl.DateTimeFormat("nl-NL", { dateStyle: "full", timeStyle: "long" });
|
||||
this.relative = new Intl.RelativeTimeFormat("nl-NL", { numeric: "auto" });
|
||||
this.dateFormat = new Intl.DateTimeFormat("en-GB", { day: "2-digit", month: "2-digit", year: "numeric" });
|
||||
this.timeFormat = new Intl.DateTimeFormat("en-GB", { hour: "2-digit", minute: "2-digit" });
|
||||
this.fullFormat = new Intl.DateTimeFormat("en-GB", { dateStyle: "full", timeStyle: "long" });
|
||||
this.relative = new Intl.RelativeTimeFormat("en-GB", { numeric: "auto" });
|
||||
this.renderAll(document);
|
||||
this.observer = new MutationObserver((mutations) => {
|
||||
mutations.forEach((mutation) => mutation.addedNodes.forEach((node) => node.nodeType === 1 && this.renderAll(node)));
|
||||
|
||||
Reference in New Issue
Block a user