diff --git a/src/client/javascript/locales/en_EN.js b/src/client/javascript/locales/en_EN.js index 01f7d1b8d2..c11c8c9ac0 100644 --- a/src/client/javascript/locales/en_EN.js +++ b/src/client/javascript/locales/en_EN.js @@ -281,6 +281,7 @@ module.exports = { // VFS -> Dropbox 'ERR_DROPBOX_API' : 'Failed to load Dropbox API', 'ERR_DROPBOX_AUTH' : 'Failed to authenticate via Dropbox', + 'ERR_DROPBOX_KEY' : 'No Dropbox client key configured', 'DROPBOX_NOTIFICATION_TITLE' : 'You are signed in to Dropbox API', 'DROPBOX_SIGN_OUT' : 'Sign out from Google API Services', diff --git a/src/client/javascript/vfs/transports/dropbox.js b/src/client/javascript/vfs/transports/dropbox.js index 94929bac8d..d3e1bd0b53 100644 --- a/src/client/javascript/vfs/transports/dropbox.js +++ b/src/client/javascript/vfs/transports/dropbox.js @@ -133,7 +133,7 @@ export default class DropboxTransport extends Transport { _init() { const clientId = getConfig('DropboxAPI.ClientKey'); if ( !clientId ) { - return Promise.reject(new Error('No Dropbox client key defined')); + return Promise.reject(new Error(_('ERR_DROPBOX_KEY'))); } return new Promise((resolve, reject) => {