mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
removed client side i18n as we don't really need it #wasteoftime
This commit is contained in:
parent
03db0bc797
commit
9b8d77cb0f
5 changed files with 1 additions and 17 deletions
|
@ -10,7 +10,6 @@ define [
|
|||
"ng-context-menu"
|
||||
"underscore"
|
||||
"ngSanitize"
|
||||
"jm.i18next"
|
||||
])
|
||||
|
||||
return App
|
|
@ -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"
|
||||
], () ->
|
||||
|
|
|
@ -18,6 +18,5 @@ define [
|
|||
"directives/selectAll"
|
||||
"directives/maxHeight"
|
||||
"filters/formatDate"
|
||||
"utils/i18nextProvider"
|
||||
], () ->
|
||||
angular.bootstrap(document.body, ["SharelatexApp"])
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
]
|
Loading…
Reference in a new issue