]> BookStack Code Mirror - bookstack/blobdiff - dev/docs/javascript-code.md
JS: Converted/updated translation code to TS, fixed some comment counts
[bookstack] / dev / docs / javascript-code.md
index ba7d799724896700b53b70e4172697971a995c1c..e5f491839f0933bc7f7f80ae126289b488f8ebde 100644 (file)
@@ -137,8 +137,8 @@ window.$events.showValidationErrors(error);
 // Translator
 // Take the given plural text and count to decide on what plural option
 // to use, Similar to laravel's trans_choice function but instead
-// takes the direction directly instead of a translation key.
-window.trans_plural(translationString, count, replacements);
+// takes the translation text directly instead of a translation key.
+window.$trans.choice(translationString, count, replacements);
 
 // Component System
 // Parse and initialise any components from the given root el down.