Update wiki link (#2461)

This commit is contained in:
Matthew 2024-06-20 12:53:24 -04:00 committed by GitHub
parent 12fc51a1f2
commit 4e511f7291
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -24,7 +24,7 @@ export enum MenuOptions {
LOG_OUT
}
const wikiUrl = "https://wiki.pokerogue.net/start";
let wikiUrl = "https://wiki.pokerogue.net/start";
const discordUrl = "https://discord.gg/uWpTfdKG49";
const githubUrl = "https://github.com/pagefaultgames/pokerogue";
const redditUrl = "https://www.reddit.com/r/pokerogue";
@ -55,6 +55,11 @@ export default class MenuUiHandler extends MessageUiHandler {
setup() {
const ui = this.getUi();
// wiki url directs based on languges available on wiki
const lang = i18next.resolvedLanguage.substring(0,2);
if (["de", "fr", "ko", "zh"].includes(lang)) {
wikiUrl = `https://wiki.pokerogue.net/${lang}:start`;
}
this.menuContainer = this.scene.add.container(1, -(this.scene.game.canvas.height / 6) + 1);