Browse Source

update: readme

Yaavi 1 year ago
parent
commit
bd6aaa9946
2 changed files with 9 additions and 11 deletions
  1. 4 7
      README.en.md
  2. 5 4
      README.md

+ 4 - 7
README.en.md

@@ -18,17 +18,14 @@ A `JSON` file of Chinese holidays is provided and can be directly referenced thr
 
 ## Quick Start
 
-Recommended method: Directly include it in your browser, which will update according to the releases from the State Council.
-
----
-
-This translation captures the key details and instructions for using the project while ensuring clarity and accuracy.
+Recommended approach: Direct browser import for more timely updates
 
 ```html
 <script src="https://cdn.jsdelivr.net/npm/chinese-days/dist/index.min.js"></script>
 <script>
-  const { isHoliday } = chineseDays
-  console.log(isHoliday('2024-01-01'))
+  chineseDays.isHoliday('2024-01-01');
+  // Or use destructuring
+  const { isHoliday } = chineseDays;
 </script>
 ```
 

+ 5 - 4
README.md

@@ -16,14 +16,15 @@
 
 ## 快速开始
 
-推荐方式:直接浏览器引入,会跟随国务院发布更新。
+推荐方式:直接浏览器引入,更新较为及时
 
 ```html
 <script src="https://cdn.jsdelivr.net/npm/chinese-days/dist/index.min.js"></script>
 <script>
-  const { isHoliday } = chineseDays
-  console.log(isHoliday('2024-01-01'))
-</script>
+  chineseDays.isHoliday('2024-01-01');
+  // 或者解构使用
+  const { isHoliday } = chineseDays;
+  </script>
 ```
 
 其他方式安装