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:
parent
f70e631953
commit
2e26064d2f
2 changed files with 5 additions and 0 deletions
|
@ -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.",
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue