/usr/lib/python2.7/dist-packages/notebook/static/base/js/i18nload.js is in python-notebook 5.2.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | /**
* Plugin to load a single locale.
*/
define([
"require",
"module",
// These are only here so that the optimizer knows which ones we MIGHT load.
// We will actually only load the ones we need. There should be one entry
// here for each language you want to support.
// For example, for German....
// "json!base/../../i18n/de/LC_MESSAGES/nbjs.json"
], function (require, module) {
return {
id: module.id,
load: function (locale, callerRequire, onload, loaderConfig) {
var dependencies = "json!base/../../i18n/"+locale+"/LC_MESSAGES/nbjs.json";
// Load the JSON file requested
require([dependencies], function (data) {
onload(data);
});
}
};
});
|