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

View File

@ -2,6 +2,7 @@
const fs = require('node:fs')
const path = require('node:path')
const YAML = require('yaml')
const locKeys = require('./loc.keys.js')
/**
* This script will patch ConverseJS .po files, to add custom strings.
@ -11,9 +12,7 @@ const livechatDir = path.resolve(__dirname, '..', 'languages')
const converseDir = path.resolve(__dirname, '..', 'build', 'conversejs', 'src', 'i18n')
// Labels to import:
const labels = loadLabels([
'slow_mode_info'
])
const labels = loadLabels(locKeys)
function loadLabels (keys) {
const labels = {}