Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
tejaswarathe committed Dec 21, 2024
1 parent de723ab commit 7fbfb21
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/i18n/scripts/translations.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7fbfb21

Please sign in to comment.