File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ interface Props {
44}
55
66const { t } = Astro .props
7+ const currentYear = new Date ().getFullYear ()
8+ const locale = Astro .url .pathname .includes (' /zh/' ) ? ' zh' : ' en'
9+ const licenseText = locale === ' zh' ? ' GPL-3.0 许可证。' : ' GPL-3.0 License.'
710---
811
912<footer class =" border-t border-border/50 py-8" >
@@ -13,9 +16,9 @@ const { t } = Astro.props
1316 <img src =" /ReadAny/logo.svg" alt =" ReadAny" class =" h-5 w-5" />
1417 <span class =" text-sm font-medium" >ReadAny</span >
1518 </div >
16-
19+
1720 <p class =" text-sm text-muted-foreground" >
18- { t ( ' footer.copyright ' ) }
21+ © { currentYear } ReadAny. { licenseText }
1922 </p >
2023 </div >
2124 </div >
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ const categories = [
7272 <input
7373 id =" support-search-input"
7474 type =" text"
75- placeholder =" 搜索文档,例如" 导入书籍" ..."
75+ placeholder =" 搜索文档,例如 " 导入书籍" ..."
7676 autocomplete =" off"
7777 />
7878 <button class =" search-btn" >搜索</button >
You can’t perform that action at this time.
0 commit comments