From 6a8bc02b16eb31799c0b1324e6ea76b5ef49579f Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Tue, 14 May 2019 09:08:08 +0200 Subject: Move OC.addTranslations to the bundle and deprecate it Signed-off-by: Christoph Wurst --- core/src/OC/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'core/src/OC/index.js') diff --git a/core/src/OC/index.js b/core/src/OC/index.js index 4525ef189ac..22d380aa128 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, -- cgit v1.2.3