mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-10 06:39:01 +02:00
removed client side i18n as we don't really need it #wasteoftime
This commit is contained in:
@@ -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'
|
||||
]
|
||||
Reference in New Issue
Block a user