Created
February 19, 2015 21:37
-
-
Save jstrimpel/061f4f26aa9e2314673b to your computer and use it in GitHub Desktop.
load locale data for globalize in model syncher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(['lazoSyncher'], function (LazoSyncher) { | |
'use strict'; | |
return LazoSyncher.extend({ | |
fetch: function (options) { | |
var path = 'json!' + options.params.resource + '/' + options.params.locale + '.json' | |
LAZO.require([path], function (json) { | |
options.success(json); | |
}, function (err) { | |
options.error(err); | |
}); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment