mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-05-02 14:36:08 -04:00
finalizing tests for I18n class, AJAX loading of translations needs to be tested in browser, mocked for now
This commit is contained in:
parent
e1ea14627f
commit
37f5d99bc4
5 changed files with 80 additions and 11 deletions
|
@ -306,7 +306,7 @@ jQuery.PrivateBin = function($, sjcl, Base64, RawDeflate) {
|
|||
* @param {object} document
|
||||
* @class
|
||||
*/
|
||||
var I18n = (function (window, document) {
|
||||
var I18n = (function () {
|
||||
var me = {};
|
||||
|
||||
/**
|
||||
|
@ -544,14 +544,14 @@ jQuery.PrivateBin = function($, sjcl, Base64, RawDeflate) {
|
|||
* @name I18n.reset
|
||||
* @function
|
||||
*/
|
||||
me.reset = function()
|
||||
me.reset = function(mockLanguage, mockTranslations)
|
||||
{
|
||||
language = null;
|
||||
translations = {};
|
||||
language = mockLanguage || null;
|
||||
translations = mockTranslations || {};
|
||||
}
|
||||
|
||||
return me;
|
||||
})(window, document);
|
||||
})();
|
||||
|
||||
/**
|
||||
* handles everything related to en/decryption
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue