Skip to content

Commit

Permalink
chore: upgrade to vue-i18n-next beta.22
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Jul 26, 2023
1 parent 032e2fc commit 8990ff7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/utils/collect-linked-keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function extractUsedKeysFromAST(ast: ResourceNode): Set<string> {
if (node.type === NodeTypes.Linked) {
if (node.key.type === NodeTypes.LinkedKey) {
keys.add(node.key.value)
} else if (node.key.type === NodeTypes.Literal) {
} else if (node.key.type === NodeTypes.Literal && node.key.value) {
keys.add(node.key.value)
} else if (node.key.type === NodeTypes.List) {
keys.add(String(node.key.index))
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/message-compiler/parser-v8.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class CodeContext {
}
setEndLoc(
node: {
end: number
end?: number
loc?: SourceLocation
},
end: number
Expand Down

0 comments on commit 8990ff7

Please sign in to comment.