Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .vitepress/data/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const en: LocaleMessages = {
tipArm64: '**ARM64** is for devices like Surface Pro X',
tipUnsure: 'Unsure? Try **X64** first',
privacyTitle: 'Privacy Notice',
privacyDesc: 'By downloading and running, you agree to our privacy policy:',
privacyDesc: 'By downloading and running, You agree to our privacy policy:',
mirrorChyanTitle: 'MirrorChyan Download',
mirrorChyanDesc: 'Use MirrorChyan CDK for high-speed download',
mirrorChyanBtn: 'MirrorChyan Download',
Expand All @@ -69,8 +69,8 @@ export const en: LocaleMessages = {
},

region: {
blocked: 'Downloads are not available in your country or region',
hint: 'Sorry, this content is currently unavailable in your region.',
blocked: 'Downloads are not available in Your country or region',
hint: 'Sorry, this content is currently unavailable in Your region.',
},

history: {
Expand Down
4 changes: 2 additions & 2 deletions .vitepress/data/locales/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const zh: LocaleMessages = {
privacyDesc:
'如果您点击下方任意下载并运行程序,代表同意我们的隐私协议,隐私协议请点击下方链接查看:',
mirrorChyanTitle: 'Mirror 酱高速下载',
mirrorChyanDesc: '如果你有 Mirror 酱 CDK 可以直接使用此高速下载源',
mirrorChyanDesc: '如果您有 Mirror 酱 CDK 可以直接使用此高速下载源',
mirrorChyanBtn: 'Mirror 酱下载',
downloadLinks: '下载链接',
x64Version: 'X64 版本',
Expand All @@ -66,7 +66,7 @@ export const zh: LocaleMessages = {
historicalVersions: '历史版本下载',
historicalDesc: '如果您需要旧版本的 PCL CE,可以从以下链接下载:',
historicalBtn: '历史版本',
alsoDownload: '你也可以直接在下方的链接中下载',
alsoDownload: '您也可以直接在下方的链接中下载',
},

region: {
Expand Down
29 changes: 13 additions & 16 deletions .vitepress/theme/components/HistoryReleases.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ const messages = computed(() => {
});

// biome-ignore lint/correctness/noUnusedVariables: used in Vue template
const {
blocked,
message: blockedMessage,
hint: blockedHint,
} = useRegionGuard();
const { blocked, message: blockedText, hint: blockedHint } = useRegionGuard();

function formatDate(value: string) {
if (!value) return '';
Expand Down Expand Up @@ -200,10 +196,15 @@ function handleOutsideClick(event: MouseEvent) {
<div class="history-releases">
<div class="history-header">
<h1>{{ messages.title }}</h1>
<p>{{ messages.subtitle }}</p>
<p v-if="!blocked">{{ messages.subtitle }}</p>
</div>

<div v-if="loading" class="history-state">
<div v-if="blocked" class="history-blocked">
<div>{{ blockedText }}</div>
<div class="history-blocked-hint">{{ blockedHint }}</div>
</div>

<div v-else-if="loading" class="history-state">
<div class="history-loading"></div>
<span>{{ messages.loading }}</span>
</div>
Expand Down Expand Up @@ -290,11 +291,7 @@ function handleOutsideClick(event: MouseEvent) {
</div>
</div>

<div v-if="blocked" class="history-assets-blocked">
<div>{{ blockedMessage }}</div>
<div class="history-assets-blocked-hint">{{ blockedHint }}</div>
</div>
<div v-else-if="selectedAssets.length > 0" class="history-assets">
<div v-if="selectedAssets.length > 0" class="history-assets">
<a
v-for="asset in selectedAssets"
:key="asset.href"
Expand Down Expand Up @@ -630,17 +627,17 @@ function handleOutsideClick(event: MouseEvent) {
font-size: 0.9rem;
}

.history-assets-blocked {
margin-top: 0.6rem;
padding: 0.75rem 1rem;
.history-blocked {
margin-top: 1rem;
padding: 1.5rem;
border: 1px dashed var(--vp-c-divider);
border-radius: 12px;
background: var(--vp-c-bg-soft);
text-align: center;
color: var(--vp-c-text-2);
}

.history-assets-blocked-hint {
.history-blocked-hint {
margin-top: 0.35rem;
font-size: 0.9rem;
color: var(--vp-c-text-3);
Expand Down
4 changes: 2 additions & 2 deletions src/download.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ keywords: PCL下载,Minecraft启动器下载,PCL社区版下载,启动器下载

### Mirror 酱高速下载

如果你有 Mirror 酱 CDK 可以直接使用此高速下载源
如果您有 Mirror 酱 CDK 可以直接使用此高速下载源

<RegionGate>

[Mirror 酱下载](https://mirrorchyan.com/zh/projects?rid=PCL2-CE&source=pcl2ce-web){.download-btn}

</RegionGate>

你也可以直接在下方的链接中下载
您也可以直接在下方的链接中下载

## 下载链接

Expand Down
6 changes: 3 additions & 3 deletions src/en/download.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ Check **System Type**:

### Privacy Policy Notice

By clicking any download button below and running the program, you agree to our privacy policy. Please click the link below to view the privacy policy:
By clicking any download button below and running the program, You agree to our privacy policy. Please click the link below to view the privacy policy:

[https://www.pclc.cc/privacy/](https://www.pclc.cc/privacy/)

### MirrorChyan High-Speed Download

If you have a MirrorChyan CDK, you can use this high-speed download source directly
If You have a MirrorChyan CDK, You can use this high-speed download source directly

<RegionGate>

Expand Down Expand Up @@ -68,6 +68,6 @@ For ARM-based Windows PCs

## Historical Versions

If you need an older version of PCL CE, you can download from the following link:
If You need an older version of PCL CE, You can download from the following link:

[Historical Versions](/en/history){.mirror-btn}
2 changes: 1 addition & 1 deletion src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ hero:
features:
- icon: 🔍
title: 精准崩溃分析
details: 自动检测并分析游戏崩溃原因,提供详细的解决方案和建议,让你快速解决问题。
details: 自动检测并分析游戏崩溃原因,提供详细的解决方案和建议,让您快速解决问题。
- icon: 📁
title: 多文件夹管理
details: 支持多个游戏实例管理,不同版本、不同模组包完全隔离,轻松切换游戏环境。
Expand Down
Loading