Просмотр исходного кода

removed client side i18n as we don't really need it #wasteoftime

Henry Oswald 12 лет назад
Родитель
Сommit
9b8d77cb0f

+ 0 - 1
services/web/public/coffee/base.coffee

@@ -10,7 +10,6 @@ define [
 		"ng-context-menu"
 		"ng-context-menu"
 		"underscore"
 		"underscore"
 		"ngSanitize"
 		"ngSanitize"
-		"jm.i18next"
 	])
 	])
 
 
 	return App
 	return App

+ 0 - 4
services/web/public/coffee/libs.coffee

@@ -8,8 +8,4 @@ define [
 	"libs/jquery.storage"
 	"libs/jquery.storage"
 	"libs/fineuploader"
 	"libs/fineuploader"
 	"libs/angular-sanitize-1.2.17"
 	"libs/angular-sanitize-1.2.17"
-	"libs/i18next"
-	"libs/ng-i18next/provider"
-	"libs/ng-i18next/directive/directive"
-	"libs/ng-i18next/filter/filter"
 ], () ->
 ], () ->

+ 0 - 1
services/web/public/coffee/main.coffee

@@ -18,6 +18,5 @@ define [
 	"directives/selectAll"
 	"directives/selectAll"
 	"directives/maxHeight"
 	"directives/maxHeight"
 	"filters/formatDate"
 	"filters/formatDate"
-	"utils/i18nextProvider"
 ], () ->
 ], () ->
 	angular.bootstrap(document.body, ["SharelatexApp"])
 	angular.bootstrap(document.body, ["SharelatexApp"])

+ 1 - 2
services/web/public/coffee/main/project-list.coffee

@@ -50,8 +50,7 @@ define [
 
 
 		return queuedHttp
 		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.projects = window.data.projects
 		$scope.tags = window.data.tags
 		$scope.tags = window.data.tags
 		$scope.allSelected = false
 		$scope.allSelected = false

+ 0 - 9
services/web/public/coffee/utils/i18nextProvider.coffee

@@ -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'
-]