Log in with external Peertube account (#348):

* For anonymous users: new "log in using an external account" dialog, with the "remote Peertube account" options
* ConverseJS: using global vars for custom localized string (injected
  using Webpack)
This commit is contained in:
John Livingston
2024-04-08 19:02:56 +02:00
parent c55fabc972
commit 8fc8e3032b
15 changed files with 328 additions and 29 deletions

19
conversejs/loc.keys.js Normal file
View File

@ -0,0 +1,19 @@
/** Localization keys to inject in ConverseJS:
* these keys are used to:
* - inject needed localization strings in ConverseJS language files
* - defined global variable using Webpack, to retrieve the english key to pass to the ConverseJS localization function
*/
const locKeys = [
'slow_mode_info',
'login_using_external_account',
'login_remote_peertube',
'login_remote_peertube_searching',
'login_remote_peertube_url',
'login_remote_peertube_url_invalid',
'login_remote_peertube_no_livechat',
'login_remote_peertube_video_not_found',
'login_remote_peertube_video_not_found_try_anyway',
'login_remote_peertube_video_not_found_try_anyway_button'
]
module.exports = locKeys