You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cryptpad/www/assert/translations/main.js

22 lines
556 B
JavaScript

define([
'/bower_components/jquery/dist/jquery.min.js',
'/common/cryptpad-common.js',
], function (jQuery, Cryptpad) {
var $ = window.jQuery;
var $body = $('body');
var missing = Cryptpad.Messages._checkTranslationState();
var pre = function (text, opt) {
return $('<pre>', opt).text(text);
};
if (missing.length) {
$body.append(pre(missing.map(function (msg) {
return '* ' + msg;
}).join('\n')));
} else {
$body.text('All keys are present in all translations');
}
});