X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/53ba5b7e33135cfdcaa19ead8c226c653a78b9a7..refs/pull/1576/head:/resources/assets/js/index.js diff --git a/resources/assets/js/index.js b/resources/assets/js/index.js index c23615a88..e0c7b34e5 100644 --- a/resources/assets/js/index.js +++ b/resources/assets/js/index.js @@ -16,7 +16,7 @@ window.$events = eventManager; // Translation setup // Creates a global function with name 'trans' to be used in the same way as Laravel's translation system import Translations from "./services/translations" -const translator = new Translations(window.translations); +const translator = new Translations(); window.trans = translator.get.bind(translator); window.trans_choice = translator.getPlural.bind(translator);