Skip to content

Commit

Permalink
Replace dash with underscore for applying proper languages
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Sep 7, 2020
1 parent 297c4ad commit 3109f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gettext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class GettextBuilder {
}

detectLocale(): GettextBuilder {
return this.setLanguage(getLanguage())
return this.setLanguage(getLanguage().replace('-', '_'))
}

addTranslation(language: string, data: any): GettextBuilder {
Expand Down

0 comments on commit 3109f46

Please sign in to comment.