diff --git a/core/js/dist/login.js b/core/js/dist/login.js index 63f21659e6a37af23a520e88b136eabd410bc7ff..e8eaf37e3a0cb89d1c996d3456cc4e0baefce15b 100644 Binary files a/core/js/dist/login.js and b/core/js/dist/login.js differ diff --git a/core/js/dist/login.js.map b/core/js/dist/login.js.map index eeb046f2b16531b2bc2e0104d5582a2642f0a12c..815c55ed577fa32011f003753b3fccf15f08e3bc 100644 Binary files a/core/js/dist/login.js.map and b/core/js/dist/login.js.map differ diff --git a/core/js/dist/main.js b/core/js/dist/main.js index 054c973f2cd174a2fb7273b34d7e5d44d39cc96a..4a6adfd9d21a75a82640afc802c44523d1001fc6 100644 Binary files a/core/js/dist/main.js and b/core/js/dist/main.js differ diff --git a/core/js/dist/main.js.map b/core/js/dist/main.js.map index d9c967789e43b304c4565075f0c957de700fa915..ddcf824a0769fe958503bebb1a67047851a5f16f 100644 Binary files a/core/js/dist/main.js.map and b/core/js/dist/main.js.map differ diff --git a/core/js/js.js b/core/js/js.js index 40b5630e9de4f85c8bec6df530b3c88ba2c338d5..d665d03622050025889277f8c4d89d3fcdd19bca 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -17,20 +17,6 @@ Object.assign(window.OC, { return !!(file.match(OC.config.blacklist_files_regex)); }, - /** - }, - - /** - * Loads translations for the given app asynchronously. - * - * @param {String} app app name - * @param {Function} callback callback to call after loading - * @return {Promise} - */ - addTranslations: function(app, callback) { - return OC.L10N.load(app, callback); - }, - /** * Parses a URL query string into a JS map * @param {string} queryString query string in the format param1=1234¶m2=abcde¶m3=xyz diff --git a/core/src/OC/index.js b/core/src/OC/index.js index 4525ef189aca934cb5978221526c793ba02b85ef..22d380aa128fac5134d9fa6c6bce5501f6a84434 100644 --- a/core/src/OC/index.js +++ b/core/src/OC/index.js @@ -177,6 +177,15 @@ export default { getCanonicalLocale, getLocale, getLanguage, + /** + * Loads translations for the given app asynchronously. + * + * @param {String} app app name + * @param {Function} callback callback to call after loading + * @return {Promise} + * @deprecated 17.0.0 use OC.L10N.load instead + */ + addTranslations: L10N.load, msg, Notification,