Skip to content

Commit 00cbcf4

Browse files
committed
fix: fix the app upper component and how to use it in l10n
1 parent f491793 commit 00cbcf4

File tree

4 files changed

+25
-23
lines changed

4 files changed

+25
-23
lines changed

components/app/AppSupport.vue

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,7 @@ const supportRef = useTemplateRef('support');
2929
<li
3030
v-for="(item, index) in navigationList"
3131
:key="`${route.path}-${getSpecifiedTitle(item)}-${index}`">
32-
<AppLink
33-
:to="
34-
item.url
35-
? Number.isFinite(item.hIndex)
36-
? `${item.url}${item.hash[item.hIndex]}`
37-
: item.url
38-
: `${route.path.replace(/\/+$/, '')}${item.hash}`
39-
"
40-
>{{ getSpecifiedTitle(item) }}</AppLink
41-
>
32+
<LinkStandard :link="item" />
4233
</li>
4334
</ul>
4435
</div>

locales/en-us/json/allUniversalLink.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -851,12 +851,20 @@
851851
],
852852
"url": "https://weblate.aosc.io/"
853853
},
854-
"l10nWorkGuide": [
855-
{
856-
"title": "Guide to localization of free software in mainland China Version 1.5.4",
857-
"url": "https://repo.aosc.io/aosc-l10n/zh_CN_l10n_1.5.4.pdf"
858-
}
859-
],
854+
"l10nWorkGuide": {
855+
"title": [
856+
{
857+
"texts": [
858+
"Guide to localization of free software in mainland China ",
859+
" Version 1.5.4"
860+
],
861+
"book": [
862+
0
863+
]
864+
}
865+
],
866+
"url": "https://repo.aosc.io/aosc-l10n/zh_CN_l10n_1.5.4.pdf"
867+
},
860868
"dkcli": {
861869
"title": [
862870
"dkcli"

locales/zh-cn/json/allUniversalLink.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -575,12 +575,15 @@
575575
"title": ["社区 Weblate 平台"],
576576
"url": "https://weblate.aosc.io/"
577577
},
578-
"l10nWorkGuide": [
579-
{
580-
"title": "《大陆简中自由软件本地化工作指南》1.5.4 版",
581-
"url": "https://repo.aosc.io/aosc-l10n/zh_CN_l10n_1.5.4.pdf"
582-
}
583-
],
578+
"l10nWorkGuide": {
579+
"title": [
580+
{
581+
"texts": ["大陆简中自由软件本地化工作指南", "1.5.4 版"],
582+
"book": [0]
583+
}
584+
],
585+
"url": "https://repo.aosc.io/aosc-l10n/zh_CN_l10n_1.5.4.pdf"
586+
},
584587
"dkcli": {
585588
"title": ["dkcli"],
586589
"url": "https://github.com/AOSC-Dev/dkcli"

pages/l10n/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const linkValue = tm('allUniversalLink');
55
useHead({ title: textValue.title1 });
66
const navigationList = [linkValue.thisPageSupport, linkValue.weblate];
77
8-
const docList = linkValue.l10nWorkGuide;
8+
const docList = [linkValue.l10nWorkGuide];
99
</script>
1010

1111
<template>

0 commit comments

Comments
 (0)