* Upgrade minor packages * Add dockerfile syntax back * Update create-processor.js * Update create-processor.js
10 lines
282 B
TypeScript
10 lines
282 B
TypeScript
export default function localization() {
|
|
const linkToEnglish = document.querySelector('#to-english-doc') as HTMLAnchorElement
|
|
|
|
if (linkToEnglish) {
|
|
const pathname = window.location.pathname.split('/')
|
|
pathname[1] = 'en'
|
|
linkToEnglish.href = pathname.join('/')
|
|
}
|
|
}
|