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

This commit is contained in:
Henry Oswald 2014-08-01 14:49:43 +01:00
parent 03db0bc797
commit 9b8d77cb0f
5 changed files with 1 additions and 17 deletions

View file

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

View file

@ -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"
], () ->

View file

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

View file

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

View file

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