mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
20 lines
575 B
JavaScript
20 lines
575 B
JavaScript
// SPDX-FileCopyrightText: 2025 XWiki CryptPad Team <contact@cryptpad.org> and contributors
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
(() => {
|
|
const factory = (Messages) => {
|
|
Messages = Messages || {};
|
|
Messages._getKey = k => { return Messages[k]; };
|
|
return Messages;
|
|
};
|
|
|
|
if (typeof(module) !== 'undefined' && module.exports) {
|
|
var Msg = require('../www/common/translations/messages.json');
|
|
module.exports = factory(Msg);
|
|
} else if ((typeof(define) !== 'undefined' && define !== null) && (define.amd !== null)) {
|
|
define([], factory);
|
|
}
|
|
})();
|
|
|