view website/src/site.js @ 2046:e0896f65c847 acme-tiny

fix temp_dir_string initiation
author Violet7
date Sun, 09 Nov 2025 02:38:09 -0800
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;
}