Skip to content

Commit

Permalink
Better translation support
Browse files Browse the repository at this point in the history
  • Loading branch information
theyosh committed Aug 14, 2023
1 parent ebe0bf3 commit 5208ba5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/_includes/topbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@
if (this.value == 'gb') {
location.href='https://theyosh.github.io/TerrariumPI/';
} else {
location.href='https://translate.google.com/translate?hl=en&sl=en&tl=' + this.value + '&u=https%3A%2F%2Ftheyosh.github.io%2FTerrariumPI%2F'
location.href='https://translate.google.com/translate?hl=en&sl=en&tl=' + this.value + '&u=https%3A%2F%2Ftheyosh.github.io' + location.path.replace('/','%2F')
//%2FTerrariumPI%2F'
}
}
});
Expand Down

0 comments on commit 5208ba5

Please sign in to comment.