Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix key extraction

Chocobozzz693e343a8943
diff --git a/server/.i18next.config.ts b/server/.i18next.config.ts
index b52a76f1f2..5897cf3de7 100644
--- a/server/.i18next.config.ts
+++ b/server/.i18next.config.ts
@@ -25,7 +25,7 @@ const handlebarsPlugin = () => ({
if (!keys.has(uniqueKey)) {
keys.set(uniqueKey, {
key,
- defaultValue: 'key',
+ defaultValue: key,
ns: 'translation'
})
}
diff --git a/server/locales/en-US/translation.json b/server/locales/en-US/translation.json
index 8ec439cad0..2b14726265 100644
--- a/server/locales/en-US/translation.json
+++ b/server/locales/en-US/translation.json
@@ -39,7 +39,7 @@
"A channel ownership change request has been rejected": "A channel ownership change request has been rejected",
"A channel ownership change request is waiting for you": "A channel ownership change request is waiting for you",
"A comment is pending moderation": "A comment is pending moderation",
- "A new login to your account on {instanceName} was detected from a <strong>new device</strong>.": "key",
+ "A new login to your account on {instanceName} was detected from a <strong>new device</strong>.": "A new login to your account on {instanceName} was detected from a <strong>new device</strong>.",
"A new message by {messageAccountName} was posted on <a href=\"{abuseUrl}\">abuse report #{abuseId}</a>": "A new message by {messageAccountName} was posted on <a href=\"{abuseUrl}\">abuse report #{abuseId}</a>",
"A new PeerTube version is available: {latestVersion}": "A new PeerTube version is available: {latestVersion}",
"A new user registered": "A new user registered",
@@ -66,7 +66,7 @@
"Another actor (account/channel) with name {name} on this instance already exists or has already existed.": "Another actor (account/channel) with name {name} on this instance already exists or has already existed.",
"Another actor (account/channel) with this name on this instance already exists or has already existed.": "Another actor (account/channel) with this name on this instance already exists or has already existed.",
"Apart from the publisher and the moderation team, no one will be able to see the video until you unblock it.": "Apart from the publisher and the moderation team, no one will be able to see the video until you unblock it.",
- "Approximate location": "key",
+ "Approximate location": "Approximate location",
"Authentication is required": "Authentication is required",
"Authentication is required to access the video source file": "Authentication is required to access the video source file",
"Authentication is required.": "Authentication is required.",
@@ -78,7 +78,7 @@
"Both start date and end date should be defined if one of them is specified": "Both start date and end date should be defined if one of them is specified",
"Browse videos default scope should be {options}, instead of {value}": "Browse videos default scope should be {options}, instead of {value}",
"Browse videos default sort should be {options}, instead of {value}": "Browse videos default sort should be {options}, instead of {value}",
- "Browser / device": "key",
+ "Browser / device": "Browser / device",
"Cannot accept to transfer the last channel of this user": "Cannot accept to transfer the last channel of this user",
"Cannot bypass oauth login by plugin {pluginName}: this account already uses another auth plugin.": "Cannot bypass oauth login by plugin {pluginName}: this account already uses another auth plugin.",
"Cannot cancel a non pending video import": "Cannot cancel a non pending video import",
@@ -145,7 +145,7 @@
"currentPassword is invalid.": "currentPassword is invalid.",
"currentPassword parameter is missing": "currentPassword parameter is missing",
"Custom latency mode is not allowed by this instance": "Custom latency mode is not allowed by this instance",
- "Date": "key",
+ "Date": "Date",
"Dislikes:": "Dislikes:",
"Domains should be empty when policy is in \"all allowed\" or \"disabled\" mode": "Domains should be empty when policy is in \"all allowed\" or \"disabled\" mode",
"DVR is not enabled on this instance": "DVR is not enabled on this instance",
@@ -156,7 +156,7 @@
"Failed to import your archive": "Failed to import your archive",
"Hi {username},": "Hi {username},",
"HTTP import is not enabled on this instance": "HTTP import is not enabled on this instance",
- "If this was you, you can safely ignore this email. If you don't recognize this activity, we recommend changing your password as soon as possible.": "key",
+ "If this was you, you can safely ignore this email. If you don't recognize this activity, we recommend changing your password as soon as possible.": "If this was you, you can safely ignore this email. If you don't recognize this activity, we recommend changing your password as soon as possible.",
"If you are not the person who initiated this request, please let us know by replying to this email.": "If you are not the person who initiated this request, please let us know by replying to this email.",
"If you trust the publisher, any admin can whitelist the user for later videos so that they don't require approval before going public.": "If you trust the publisher, any admin can whitelist the user for later videos so that they don't require approval before going public.",
"Import failed": "Import failed",
@@ -169,10 +169,10 @@
"Invalid signature": "Invalid signature",
"Invalid two factor header": "Invalid two factor header",
"Invalid video file token": "Invalid video file token",
- "IP address": "key",
+ "IP address": "IP address",
"It was published on {videoPublishedAt}.": "It was published on {videoPublishedAt}.",
"It was uploaded on {videoCreatedAt} but not yet published.": "It was uploaded on {videoCreatedAt} but not yet published.",
- "It will automatically unlock in about {lockoutMinutes} minutes. If this was not you, we recommend contacting your administrator.": "key",
+ "It will automatically unlock in about {lockoutMinutes} minutes. If this was not you, we recommend contacting your administrator.": "It will automatically unlock in about {lockoutMinutes} minutes. If this was not you, we recommend contacting your administrator.",
"Likes:": "Likes:",
"Live is not enabled on this instance": "Live is not enabled on this instance",
"Login to your account": "Login to your account",
@@ -191,7 +191,7 @@
"New follower on your account {followingName}": "New follower on your account {followingName}",
"New follower on your channel": "New follower on your channel",
"New follower on your channel {followingName}": "New follower on your channel {followingName}",
- "New login to your account": "key",
+ "New login to your account": "New login to your account",
"New login to your account from a new device": "New login to your account from a new device",
"New message on abuse report": "New message on abuse report",
"New message on report #{id}": "New message on report #{id}",
@@ -379,7 +379,7 @@
"Your account <strong>{username}</strong> has been unblocked by {instanceName} moderators.": "Your account <strong>{username}</strong> has been unblocked by {instanceName} moderators.",
"Your account has been blocked": "Your account has been blocked",
"Your account has been temporarily locked": "Your account has been temporarily locked",
- "Your account has been temporarily locked after {maxFailures} failed login attempts, most recently from IP {ip}.": "key",
+ "Your account has been temporarily locked after {maxFailures} failed login attempts, most recently from IP {ip}.": "Your account has been temporarily locked after {maxFailures} failed login attempts, most recently from IP {ip}.",
"Your account has been unblocked": "Your account has been unblocked",
"Your archive import has finished": "Your archive import has finished",
"Your archive import has finished. Here is the summary of imported objects:": "Your archive import has finished. Here is the summary of imported objects:",