We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I was able to setup localization with SystemJS by wrapping System.import as follow.
$(function () { $.when( $.getJSON("js/localization/fr-ca/ca-gregorian.json"), $.getJSON("js/localization/fr-ca/numbers.json"), $.getJSON("js/localization/fr-ca/currencies.json"), $.getJSON("node_modules/cldr-data/supplemental/likelySubtags.json"), $.getJSON("node_modules/cldr-data/supplemental/timeData.json"), $.getJSON("node_modules/cldr-data/supplemental/weekData.json"), $.getJSON("node_modules/cldr-data/supplemental/currencyData.json"), $.getJSON("node_modules/cldr-data/supplemental/numberingSystems.json") ).then(function () { //The following code converts the got results into an array return [].slice.apply(arguments, [0]).map(function (result) { return result[0]; }); }).then( Globalize.load //loads data held in each array item to Globalize ).then(function () { var deferred = $.Deferred();
$.get("js/localization/dx.all.fr.json").then(function (data) { Globalize.loadMessages(data); Globalize.locale("fr-CA"); System.import('app').catch(function (err) { console.error(err); }); deferred.resolve(); }); return deferred.promise(); }) });
How can I do this if I use WebPack??? Where can I inject this code???
Thanks
The text was updated successfully, but these errors were encountered:
Please refer to this example. Also, please check out this comment for some extra information.
Sorry, something went wrong.
GoshaFighten
No branches or pull requests
Hi,
I was able to setup localization with SystemJS by wrapping System.import as follow.
$(function () {
$.when(
$.getJSON("js/localization/fr-ca/ca-gregorian.json"),
$.getJSON("js/localization/fr-ca/numbers.json"),
$.getJSON("js/localization/fr-ca/currencies.json"),
$.getJSON("node_modules/cldr-data/supplemental/likelySubtags.json"),
$.getJSON("node_modules/cldr-data/supplemental/timeData.json"),
$.getJSON("node_modules/cldr-data/supplemental/weekData.json"),
$.getJSON("node_modules/cldr-data/supplemental/currencyData.json"),
$.getJSON("node_modules/cldr-data/supplemental/numberingSystems.json")
).then(function () {
//The following code converts the got results into an array
return [].slice.apply(arguments, [0]).map(function (result) {
return result[0];
});
}).then(
Globalize.load //loads data held in each array item to Globalize
).then(function () {
var deferred = $.Deferred();
How can I do this if I use WebPack??? Where can I inject this code???
Thanks
The text was updated successfully, but these errors were encountered: