You could also use `navigator.language` in some browsers to get the preferred language straight from the client instead of using a query string. Such as:
new Date().toLocaleDateString(window.navigator.language, {
day: "numeric",
month: "short",
year: "numeric",
weekday: "long"
});