X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/968bc8cdf354d9cbe29b88abdc747a7845031fab..refs/pull/5659/head:/dev/docs/javascript-code.md diff --git a/dev/docs/javascript-code.md b/dev/docs/javascript-code.md index ba7d79972..e5f491839 100644 --- a/dev/docs/javascript-code.md +++ b/dev/docs/javascript-code.md @@ -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.