Skip to content

Commit

Permalink
Linting part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Veilza committed Aug 8, 2024
1 parent 445783c commit d2e5269
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions system/api/generate-localization.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ export const generateLocalizedLabel = (string, type) => {
if (type === 'edges') {
const edges = WOD5E.Edges.getList()
return findLabel(edges, string)
} else
} else {
// Return the base localization if nothing else is found
{
const otherLocalizationString = string.capitalize()
return game.i18n.localize(`WOD5E.${otherLocalizationString}`)
}
Expand All @@ -63,4 +62,4 @@ export const generateLocalizedLabel = (string, type) => {
// Return nothing
return ''
}
}
}

0 comments on commit d2e5269

Please sign in to comment.