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

24 lines
617 B
JavaScript

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