Add Korean Japanese and English user interfaces

This commit is contained in:
2026-10-15 18:21:17 +09:00
parent 8fb8c203f0
commit b831003e7d
41 changed files with 3074 additions and 351 deletions

View File

@@ -57,6 +57,7 @@ try {
const errors = [];
async function page(width = 1280, ip = '8.8.4.4', country = 'KR') {
const context = await browser.newContext({
locale: 'ko-KR',
viewport: { width, height: 900 },
isMobile: width < 600,
hasTouch: width < 600,
@@ -67,6 +68,7 @@ try {
'CF-Region': country === 'CN' ? 'Beijing' : 'Daejeon',
},
});
await context.addInitScript(() => localStorage.setItem('hop-language', 'ko'));
const page = await context.newPage();
page.on('pageerror', (error) => errors.push(error.message));
await page.goto(url);