* initial documentation changes * editing layouts terminology * update to match other files * move javascripts to components/lib * fix: dockerfile * update based on Mikes updates to the javascripts directory * update components/README.md Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
10 lines
270 B
TypeScript
10 lines
270 B
TypeScript
export default function () {
|
|
const linkToEnglish = document.querySelector('#to-english-doc') as HTMLAnchorElement
|
|
|
|
if (linkToEnglish) {
|
|
const pathname = window.location.pathname.split('/')
|
|
pathname[1] = 'en'
|
|
linkToEnglish.href = pathname.join('/')
|
|
}
|
|
}
|