summaryrefslogtreecommitdiffstats
path: root/core/src/OC/index.js
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-14 09:08:08 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-14 09:37:26 +0200
commit6a8bc02b16eb31799c0b1324e6ea76b5ef49579f (patch)
treeb1c5e17e2a23921c78cb478db1303af8779f3b84 /core/src/OC/index.js
parentb6c6be637536937c00c361da131da59b1f396aaf (diff)
downloadnextcloud-server-6a8bc02b16eb31799c0b1324e6ea76b5ef49579f.tar.gz
nextcloud-server-6a8bc02b16eb31799c0b1324e6ea76b5ef49579f.zip
Move OC.addTranslations to the bundle and deprecate it
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/src/OC/index.js')
-rw-r--r--core/src/OC/index.js9
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,