Skip to content

Commit 3109f46

Browse files
committed
Replace dash with underscore for applying proper languages
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent 297c4ad commit 3109f46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/gettext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class GettextBuilder {
1414
}
1515

1616
detectLocale(): GettextBuilder {
17-
return this.setLanguage(getLanguage())
17+
return this.setLanguage(getLanguage().replace('-', '_'))
1818
}
1919

2020
addTranslation(language: string, data: any): GettextBuilder {

0 commit comments

Comments
 (0)