ManageIQ/manageiq-ui-classic

View on GitHub
app/javascript/oldjs/i18n.js

Summary

Maintainability
A
0 mins
Test Coverage
require('./locale/');
require('gettext_i18n_rails_js/vendor/assets/javascripts/gettext/jed.js');
require('gettext_i18n_rails_js/lib/assets/javascripts/gettext/all.js');
require('./miq_global.js');

$(function() {
  // set in layouts/i18n_js
  if (ManageIQ && ManageIQ.i18n && ManageIQ.i18n.mark_translated_strings) {
    window.__ = function() {
      return '\u00BB' + i18n.gettext.apply(i18n, arguments) + '\u00AB';
    };
    window.n__ = function() {
      return '\u00BB' + i18n.ngettext.apply(i18n, arguments) + '\u00AB';
    };
  }
});