Skip to content

Commit 70cb48d

Browse files
committed
Chiense config
1 parent 17b537b commit 70cb48d

File tree

4 files changed

+48
-1
lines changed

4 files changed

+48
-1
lines changed

docs/docusaurus.config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ module.exports = {
1313
favicon: 'img/favicon.ico',
1414
organizationName: user, // Usually your GitHub org/user name.
1515
projectName: project, // Usually your repo name.
16+
i18n: {
17+
defaultLocale: 'en',
18+
locales: ['en', 'zh-Hant'],
19+
},
1620
themeConfig: {
1721
prism: {
1822
additionalLanguages: ["php"]
@@ -24,7 +28,11 @@ module.exports = {
2428
src: 'img/logo.svg',
2529
},
2630
items: [
27-
{to: 'docs/getting-started', label: 'Docs', position: 'left'},
31+
{to: 'docs/getting-started', label: 'Docs', position: 'left'},
32+
{
33+
type: 'localeDropdown',
34+
position: 'left',
35+
},
2836
{
2937
href: githubUrl,
3038
label: 'GitHub',
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"title": {
3+
"message": "部落格",
4+
"description": "The title for the blog used in SEO"
5+
},
6+
"description": {
7+
"message": "部落格",
8+
"description": "The description for the blog used in SEO"
9+
},
10+
"sidebar.title": {
11+
"message": "最新文章",
12+
"description": "The label for the left sidebar"
13+
}
14+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"version.label": {
3+
"message": "當前版本",
4+
"description": "The label for version current"
5+
},
6+
"sidebar.someSidebar.category.APIs": {
7+
"message": "APIs",
8+
"description": "The label for category APIs in sidebar someSidebar"
9+
}
10+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: API 金鑰
3+
---
4+
5+
所有請求都需要從 OpenWeatherMap 獲取的免費 API 金鑰(有時稱為 "APPID")。
6+
要獲取您的 API 金鑰,請[註冊 OpenWeatherMap 帳戶](https://home.openweathermap.org/users/sign_up)
7+
8+
在您收到 API 金鑰後,**可能需要 ["幾個小時"](https://openweathermap.org/appid) 才能激活!其他用戶[報告](https://github.com/cmfcmf/OpenWeatherMap-PHP-API/issues/46) 大約需要 10 分鐘** 才能使 API 金鑰生效。
9+
10+
請注意 OpenWeatherMap 提供數據的許可證。撰寫本文時,所有數據均按照 **CC BY-SA 4.0** 授權,即使是付費帳戶也是如此。然而,請記住,本項目與 OpenWeatherMap 無關,這些信息可能已過時,且我無法給您法律建議。請務必自行查看條款和條件:
11+
12+
- https://openweathermap.org/terms
13+
- https://openweathermap.org/price
14+
15+
*如果您的 API 金鑰或帳戶存在問題,請[直接聯繫 OpenWeatherMap](https://openweathermap.force.com/s/contactsupport) 而不是提交問題,因為我很可能無法幫助您解決帳戶問題。*

0 commit comments

Comments
 (0)