Skip to content

Commit

Permalink
fix: error when guessing lang file key values
Browse files Browse the repository at this point in the history
  • Loading branch information
Joelant05 committed Sep 10, 2022
1 parent f4b2169 commit 7342f2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Languages/Lang/guessValue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export async function guessValue(line: string) {
}

// 4. Hopefully there is only one part left now, if there isn't, the first value will be used. If the value is a namespace (contains a colon), remove the namespace, then capitalise and propose
if (!uniqueParts[0]) return ''

if (uniqueParts[0].includes(':'))
uniqueParts[0] = uniqueParts[0].split(':').pop() ?? ''
const translation = `${isSpawnEgg ? 'Spawn ' : ''}${uniqueParts[0]
Expand Down

0 comments on commit 7342f2d

Please sign in to comment.