mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
i18n is cleaned and working with requirejs
This commit is contained in:
parent
9631d4da98
commit
49c7d52208
4 changed files with 10 additions and 17 deletions
|
@ -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 = {
|
||||
|
|
|
@ -18,6 +18,6 @@ define [
|
|||
"directives/selectAll"
|
||||
"directives/maxHeight"
|
||||
"filters/formatDate"
|
||||
|
||||
"utils/i18nextProvider"
|
||||
], () ->
|
||||
angular.bootstrap(document.body, ["SharelatexApp"])
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
]
|
Loading…
Reference in a new issue