diff --git a/frontend/i18n/scripts/translations.mjs b/frontend/i18n/scripts/translations.mjs index 4a0c9f3bb32..348765338b4 100644 --- a/frontend/i18n/scripts/translations.mjs +++ b/frontend/i18n/scripts/translations.mjs @@ -160,18 +160,18 @@ const replacePlaceholders = (json, locale, deprecatedKeys, invalidKeys) => { * translations are replaced with camelCased keys the app expects. */ function replacer(_, match) { - const targetWords = {"openverse": "Openverse"}; + const targetWords = {"openverse": "Openverse"} if (match.includes("-")) { - recordProblems(match, deprecatedKeys); + recordProblems(match, deprecatedKeys) } // Check if the match is one of the target words if (match in targetWords) { - return `{'${targetWords[match]}'}`; // Add single quotes + return `{'${targetWords[match]}'}` // Add single quotes } - return `{${kebabToCamel(match)}}`; + return `{${kebabToCamel(match)}}` } function cleanupString(str, key) {