diff --git a/locales/en.json b/locales/en.json index 67ebc7fb..d178c2f8 100644 --- a/locales/en.json +++ b/locales/en.json @@ -474,6 +474,7 @@ "Playlist": "Playlist", "Please complete a block bypass to continue": "Please complete a block bypass to continue", "Please enable JavaScript to solve the captcha.": "Please enable JavaScript to solve the captcha.", + "Please wait before generating another 2FA QR code.": "Please wait before generating another 2FA QR code.", "Popularity": "Popularity", "Post Filters": "Post Filters", "Post history for %s": "Post history for %s", @@ -489,6 +490,7 @@ "Pressure": "Pressure", "Pruned IP": "Pruned IP", "Range": "Range", + "Ratelimited": "Ratelimited", "Raw IPs": "Raw IPs", "Reason": "Reason", "Recent": "w", diff --git a/locales/fr.json b/locales/fr.json index f98f0c62..1b1a0da1 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -474,6 +474,7 @@ "Playlist": "Liste de lecture", "Please complete a block bypass to continue": "Please complete a block bypass to continue", "Please enable JavaScript to solve the captcha.": "Please enable JavaScript to solve the captcha.", + "Please wait before generating another 2FA QR code.": "Please wait before generating another 2FA QR code.", "Popularity": "Popularité", "Post Filters": "Post Filters", "Post history for %s": "Post history for %s", @@ -489,6 +490,7 @@ "Pressure": "Pression", "Pruned IP": "Pruned IP", "Range": "Durée", + "Ratelimited": "Ratelimited", "Raw IPs": "Raw IPs", "Reason": "motif", "Recent": "m", diff --git a/locales/pt.json b/locales/pt.json index deea6134..ff5aa6f1 100644 --- a/locales/pt.json +++ b/locales/pt.json @@ -474,6 +474,7 @@ "Playlist": "Playlist", "Please complete a block bypass to continue": "Please complete a block bypass to continue", "Please enable JavaScript to solve the captcha.": "Necessita JavaScript.", + "Please wait before generating another 2FA QR code.": "Please wait before generating another 2FA QR code.", "Popularity": "Popularidade", "Post Filters": "Filtros", "Post history for %s": "Post history for %s", @@ -489,6 +490,7 @@ "Pressure": "Pressão", "Pruned IP": "IP Removido", "Range": "Range", + "Ratelimited": "Ratelimited", "Raw IPs": "Raw IPs", "Reason": "Reason", "Recent": "Recentes", diff --git a/models/pages/twofactor.js b/models/pages/twofactor.js index 5a665dd9..561ee562 100644 --- a/models/pages/twofactor.js +++ b/models/pages/twofactor.js @@ -19,8 +19,8 @@ module.exports = async (req, res, next) => { const ratelimit = await Ratelimits.incrmentQuota(username, '2fa', 50); if (ratelimit > 100) { return dynamicResponse(req, res, 429, 'message', { - 'title': 'Ratelimited', - 'message': 'Please wait before generating another 2FA QR code.', + 'title': res.locals.__('Ratelimited'), + 'message': res.locals.__('Please wait before generating another 2FA QR code.'), }); }