import type { FunctionalComponent } from 'preact';
import { h } from 'preact';
import './LanguageSelect.css';
import { KNOWN_LANGUAGES, langPathRegex } from '../../languages';
const LanguageSelect: FunctionalComponent<{ lang: string }> = ({ lang }) => {
return (
{
const newLang = e.target.value;
let actualDest = window.location.pathname.replace(langPathRegex, '/');
if (actualDest == '/') actualDest = `/introduction`;
window.location.pathname = '/' + newLang + actualDest;
}}
>
{Object.keys(KNOWN_LANGUAGES).map((key) => {
return (
{key}
);
})}
);
};
export default LanguageSelect;
p?id=ea308866272ca09ad22efb733f4ac1d0fe5c4bae&follow=1'>commitdiff
Age Commit message (Collapse ) Author Files Lines
regression test names
option.
qualifies for functions in the derived class. 2. Clarified that particles are selectively copied from tmp to reduced diag buffer if they are within the user-defined subdomain.