-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aed2893
commit feef76a
Showing
11 changed files
with
152 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"results": { | ||
"notfound": "未找到结果。请尝试使用不同的搜索过滤条件。", | ||
"wrongpagination": "没有可用的结果。看起来分页可能已在URL中被修改。请再次尝试搜索。" | ||
}, | ||
"form": { | ||
"address": "地址", | ||
"website": "网站", | ||
"description": "描述", | ||
"image": "图片" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"title": "unknown art", | ||
"description": "unknown art 是一个会让你了解全球艺术和独立书店的俱乐部。", | ||
"menu" : { | ||
"home": "首页", | ||
"bookshops": "书店", | ||
"bookshop": "书店" | ||
}, | ||
"language" : { | ||
"it": "意大利语", | ||
"en": "英语" | ||
}, | ||
"logo": { | ||
"title": "unknown art 的标志", | ||
"label": "主标志" | ||
}, | ||
"loading": "加载中", | ||
"pagination": { | ||
"current_page": "当前页面", | ||
"page": "页面" | ||
}, | ||
"search": { | ||
"title": "搜索书店", | ||
"description": "筛选书店列表", | ||
"field": { | ||
"total": { | ||
"label": "总计" | ||
}, | ||
"name": { | ||
"label": "名称" | ||
}, | ||
"country": { | ||
"label": "国家" | ||
}, | ||
"city": { | ||
"label": "城市" | ||
}, | ||
"website": { | ||
"label": "网站", | ||
"option": { | ||
"all": "全部", | ||
"with": "有网站", | ||
"without": "无网站" | ||
} | ||
} | ||
}, | ||
"action": { | ||
"dialog": { | ||
"title": "搜索", | ||
"label": "打开书店搜索对话框" | ||
}, | ||
"close": { | ||
"label": "关闭书店搜索对话框" | ||
}, | ||
"submit": { | ||
"title": "搜索", | ||
"label": "提交书店搜索" | ||
}, | ||
"reset": { | ||
"title": "重置", | ||
"label": "重置书店搜索" | ||
} | ||
} | ||
}, | ||
"error": { | ||
"description": "{{page}} 页面有问题,您可以稍后访问我们,或尝试重新加载页面。", | ||
"action": { | ||
"reload": { | ||
"title": "重新加载", | ||
"label": "重新加载{{page}}页面" | ||
} | ||
} | ||
}, | ||
"notfound": { | ||
"description": "未找到页面,请访问首页以解决问题。" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"intro": "欢迎,亲爱的读者!", | ||
"content": "unknown art 是一个你或许可以与来自我们美丽世界的各类人、爱好者、思想者、头脑或艺术家建立联系的世界。", | ||
"logo": { | ||
"title": "unknown art 的主图", | ||
"label": "主图" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
import type { Locator } from '@playwright/test' | ||
|
||
import { defaultLocale } from 'src/helpers/config/i18n' | ||
import type { I18nLocale } from 'src/types/i18n' | ||
import { BasePage } from 'tests/fixtures' | ||
|
||
|
||
export class HomePage extends BasePage { | ||
async goto(): Promise<void> { | ||
await this.page.goto('/') | ||
async goto(locale: I18nLocale = defaultLocale): Promise<void> { | ||
await this.page.goto(`/${locale}`) | ||
} | ||
|
||
getElement(): Locator { | ||
return this.page.locator('main') | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters