diff --git a/services/web/public/coffee/base.coffee b/services/web/public/coffee/base.coffee index 8c60e29857..90d522ead8 100644 --- a/services/web/public/coffee/base.coffee +++ b/services/web/public/coffee/base.coffee @@ -10,7 +10,6 @@ define [ "ng-context-menu" "underscore" "ngSanitize" - "jm.i18next" ]) return App \ No newline at end of file diff --git a/services/web/public/coffee/libs.coffee b/services/web/public/coffee/libs.coffee index 3a21822e03..b25e273586 100644 --- a/services/web/public/coffee/libs.coffee +++ b/services/web/public/coffee/libs.coffee @@ -8,8 +8,4 @@ define [ "libs/jquery.storage" "libs/fineuploader" "libs/angular-sanitize-1.2.17" - "libs/i18next" - "libs/ng-i18next/provider" - "libs/ng-i18next/directive/directive" - "libs/ng-i18next/filter/filter" ], () -> diff --git a/services/web/public/coffee/main.coffee b/services/web/public/coffee/main.coffee index 4ac69ae83e..da6e361893 100644 --- a/services/web/public/coffee/main.coffee +++ b/services/web/public/coffee/main.coffee @@ -18,6 +18,5 @@ define [ "directives/selectAll" "directives/maxHeight" "filters/formatDate" - "utils/i18nextProvider" ], () -> angular.bootstrap(document.body, ["SharelatexApp"]) diff --git a/services/web/public/coffee/main/project-list.coffee b/services/web/public/coffee/main/project-list.coffee index 0a958ab36c..c552dad532 100644 --- a/services/web/public/coffee/main/project-list.coffee +++ b/services/web/public/coffee/main/project-list.coffee @@ -50,8 +50,7 @@ define [ return queuedHttp - App.controller "ProjectPageController", ($scope, $modal, $q, $window, queuedHttp, event_tracking, $timeout, $i18next) -> - console.log $i18next, $i18next("new_project"), "- NEW PROJECT" + App.controller "ProjectPageController", ($scope, $modal, $q, $window, queuedHttp, event_tracking, $timeout) -> $scope.projects = window.data.projects $scope.tags = window.data.tags $scope.allSelected = false diff --git a/services/web/public/coffee/utils/i18nextProvider.coffee b/services/web/public/coffee/utils/i18nextProvider.coffee deleted file mode 100644 index 27b02d0304..0000000000 --- a/services/web/public/coffee/utils/i18nextProvider.coffee +++ /dev/null @@ -1,9 +0,0 @@ -angular.module('jm.i18next').config ['$i18nextProvider', ($i18nextProvider)-> - console.log("hello") - $i18nextProvider.options = - lng: 'en-GB', - useCookie: false, - useLocalStorage: false, - fallbackLng: 'en', - resGetPath: '/locales/__lng__.json' -] \ No newline at end of file