i18n is cleaned and working with requirejs

This commit is contained in:
Henry Oswald 2014-07-30 16:13:02 +01:00
parent 9631d4da98
commit 49c7d52208
4 changed files with 10 additions and 17 deletions

View file

@ -36,11 +36,6 @@ html(itemscope, itemtype='http://schema.org/Product')
block scripts
script(src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js")
script(src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.14/angular.min.js")
script(src="/js/libs/i18next.js")
script(src="/js/libs/ng-i18next/provider.js")
script(src="/js/libs/ng-i18next/filter/filter.js")
script(src="/js/libs/ng-i18next/directive/directive.js")
script.
window.sharelatex = {

View file

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

View file

@ -3,17 +3,6 @@ define [
], (App) ->
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'
]
App.factory "queuedHttp", ($http, $q) ->
pendingRequests = []
inflight = false

View file

@ -0,0 +1,9 @@
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'
]