瀏覽代碼

docs: update table of contents

Sv443 4 月之前
父節點
當前提交
6981c7545a
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 2 2
      README-summary.md
  2. 2 2
      README.md

+ 2 - 2
README-summary.md

@@ -70,8 +70,8 @@ or view the documentation of previous major releases:
     - [`takeRandomItem()`](https://github.com/Sv443-Network/UserUtils#takerandomitem) - returns a random item from an array and mutates it to remove the item
     - [`randomizeArray()`](https://github.com/Sv443-Network/UserUtils#randomizearray) - returns a copy of the array with its items in a random order
 - **Translation:**
-    - [`tr()`](https://github.com/Sv443-Network/UserUtils#tr) - simple translation of a string to another language
-    - [`tr.forLang()`](https://github.com/Sv443-Network/UserUtils#trforlang) - specify a language besides the currently set one for the translation
+    - [`tr()`](https://github.com/Sv443-Network/UserUtils#tr) - simple JSON-based translation system with placeholder and nesting support
+    - [`tr.forLang()`](https://github.com/Sv443-Network/UserUtils#trforlang) - translate with the specified language instead of the currently active one
     - [`tr.addLanguage()`](https://github.com/Sv443-Network/UserUtils#traddlanguage) - add a language and its translations
     - [`tr.setLanguage()`](https://github.com/Sv443-Network/UserUtils#trsetlanguage) - set the currently active language for translations
     - [`tr.getLanguage()`](https://github.com/Sv443-Network/UserUtils#trgetlanguage) - returns the currently active language

+ 2 - 2
README.md

@@ -75,8 +75,8 @@ View the documentation of previous major releases:
     - [`takeRandomItem()`](#takerandomitem) - returns a random item from an array and mutates it to remove the item
     - [`randomizeArray()`](#randomizearray) - returns a copy of the array with its items in a random order
   - [**Translation:**](#translation)
-    - [`tr()`](#tr) - simple translation of a string to another language
-    - [`tr.forLang()`](#trforlang) - specify a language besides the currently set one for the translation
+    - [`tr()`](#tr) - simple JSON-based translation system with placeholder and nesting support
+    - [`tr.forLang()`](#trforlang) - translate with the specified language instead of the currently active one
     - [`tr.addLanguage()`](#traddlanguage) - add a language and its translations
     - [`tr.setLanguage()`](#trsetlanguage) - set the currently active language for translations
     - [`tr.getLanguage()`](#trgetlanguage) - returns the currently active language