diff options
Diffstat (limited to 'core/src/OC')
-rw-r--r-- | core/src/OC/index.js | 9 |
1 files changed, 9 insertions, 0 deletions
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, |