Skip to content

Commit

Permalink
Merge pull request #172 from nextcloud/bugfix/noid/use-proper-languag…
Browse files Browse the repository at this point in the history
…ecode

Replace dash with underscore for applying proper languages
  • Loading branch information
ChristophWurst committed Sep 7, 2020
2 parents 297c4ad + 3109f46 commit 42947ad
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 42947ad

Please sign in to comment.