i18n.js 409 B

12345678910111213141516
  1. // Copyright (c) Jupyter Development Team.
  2. // Distributed under the terms of the Modified BSD License.
  3. // Module to handle i18n ( Internationalization ) and translated UI
  4. define([
  5. 'jed'
  6. ], function(Jed) {
  7. "use strict";
  8. var i18n = new Jed(document.nbjs_translations);
  9. i18n._ = i18n.gettext;
  10. i18n.msg = i18n; // Just a place holder until the init promise resolves.
  11. return i18n;
  12. });