Fixed usage if no translations has been loaded till now.
This commit is contained in:
parent
c7de6dfcc5
commit
13cf7bf535
1 changed files with 1 additions and 1 deletions
|
@ -31,6 +31,7 @@ class _Singleton extends Spine.Module
|
|||
|
||||
constructor: ->
|
||||
@map = {}
|
||||
@timestampFormat = 'yyyy-mm-dd HH:MM'
|
||||
|
||||
# observe if text has been translated
|
||||
$('body')
|
||||
|
@ -80,7 +81,6 @@ class _Singleton extends Spine.Module
|
|||
|
||||
set: ( locale ) ->
|
||||
@locale = locale
|
||||
@timestampFormat = 'yyyy-mm-dd HH:MM'
|
||||
@map = {}
|
||||
App.Com.ajax(
|
||||
id: 'i18n-set-' + locale,
|
||||
|
|
Loading…
Reference in a new issue