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: ->
|
constructor: ->
|
||||||
@map = {}
|
@map = {}
|
||||||
|
@timestampFormat = 'yyyy-mm-dd HH:MM'
|
||||||
|
|
||||||
# observe if text has been translated
|
# observe if text has been translated
|
||||||
$('body')
|
$('body')
|
||||||
|
@ -80,7 +81,6 @@ class _Singleton extends Spine.Module
|
||||||
|
|
||||||
set: ( locale ) ->
|
set: ( locale ) ->
|
||||||
@locale = locale
|
@locale = locale
|
||||||
@timestampFormat = 'yyyy-mm-dd HH:MM'
|
|
||||||
@map = {}
|
@map = {}
|
||||||
App.Com.ajax(
|
App.Com.ajax(
|
||||||
id: 'i18n-set-' + locale,
|
id: 'i18n-set-' + locale,
|
||||||
|
|
Loading…
Reference in a new issue