view website/src/site.js @ 1950:00f1a660cb6b default tip

minor - build
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 24 May 2025 10:41:42 -0600 (6 hours ago)
parents 31f006c64782
children
line wrap: on
line source
'use strict';

function setLanguage(lang) {
	console.log(lang);
	let path = location.pathname;
	if( path.match(/^\/[a-z]{2}\//) )
		path = path.substring(3);
	if( lang !== 'en' )
		path = "/" + lang + path;
	location = path;
}