Skip to content

Commit

Permalink
improvement: i18n custom block default lang (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon authored Nov 12, 2021
1 parent b431eef commit 201cdef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/infuser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ function buildI18nTag (i18nBlock: SFCI18nBlock, options?: FormatOptions): string
}
if (lang !== 'json') {
tag += ` lang="${escape(lang)}"`
} else if (lang === undefined) { // default json
tag += ` lang="json"`
}
tag += '>'

Expand Down

0 comments on commit 201cdef

Please sign in to comment.