Skip to content

Instantly share code, notes, and snippets.

@jstrimpel
Created February 19, 2015 21:37
Show Gist options
  • Save jstrimpel/061f4f26aa9e2314673b to your computer and use it in GitHub Desktop.
Save jstrimpel/061f4f26aa9e2314673b to your computer and use it in GitHub Desktop.
load locale data for globalize in model syncher
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