Replace commentron's min-age error message

Hopefully this is more concise, but it's meant more as a placeholder for others to edit easily.
This commit is contained in:
infinite-persistence 2022-02-23 14:43:53 +08:00
parent f70e631953
commit 2e26064d2f
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0
2 changed files with 5 additions and 0 deletions

View file

@ -1401,6 +1401,7 @@
"Unable to comment. Your channel has been blocked by an admin.": "Unable to comment. Your channel has been blocked by an admin.",
"Unable to comment. The content owner has disabled comments.": "Unable to comment. The content owner has disabled comments.",
"Please do not spam.": "Please do not spam.",
"Your channel does not meet the creator's minimum channel-age limit.": "Your channel does not meet the creator's minimum channel-age limit.",
"Slow mode is on. Please wait up to %1% seconds before commenting again.": "Slow mode is on. Please wait up to %1% seconds before commenting again.",
"The comment contains contents that are blocked by %1%.": "The comment contains contents that are blocked by %1%.",
"Your user name \"%1%\" is too close to the creator's user name \"%2%\" and may cause confusion. Please use another identity.": "Your user name \"%1%\" is too close to the creator's user name \"%2%\" and may cause confusion. Please use another identity.",

View file

@ -64,6 +64,10 @@ const ERR_MAP: CommentronErrorMap = {
commentron: 'duplicate comment!',
replacement: 'Please do not spam.',
},
CHANNEL_AGE: {
commentron: 'this creator has set minimum account age requirements that are not currently met',
replacement: "Your channel does not meet the creator's minimum channel-age limit.",
},
};
export function resolveCommentronError(commentronMsg: string) {