Skip to content

Commit

Permalink
Merge pull request #14 from martian111/main
Browse files Browse the repository at this point in the history
Support language tags with more than one hyphen
  • Loading branch information
rosskevin authored Feb 10, 2024
2 parents ad991db + a9fa651 commit 559c2b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const virtualModuleId = 'virtual:i18next-loader'
export const resolvedVirtualModuleId = '\0' + virtualModuleId

export function jsNormalizedLang(lang: string) {
return lang.replace(/-/, '_')
return lang.replace(/-/g, '_')
}

export function enumerateLangs(dir: string) {
Expand Down

0 comments on commit 559c2b3

Please sign in to comment.