Skip to content

Commit

Permalink
Merge pull request #301 from jovandeginste/add-russian
Browse files Browse the repository at this point in the history
feat: Add Russian translation
  • Loading branch information
jovandeginste authored Sep 16, 2024
2 parents 8576d44 + 900dd0e commit 9ec9228
Show file tree
Hide file tree
Showing 5 changed files with 973 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pkg/app/i18n.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"github.com/vorlif/spreak/humanize/locale/it"
"github.com/vorlif/spreak/humanize/locale/nb"
"github.com/vorlif/spreak/humanize/locale/nl"
"github.com/vorlif/spreak/humanize/locale/ru"
"golang.org/x/text/language"
)

Expand Down Expand Up @@ -56,22 +57,24 @@ func translations() []any {
language.English,
language.French,
language.German,
language.Indonesian,
language.Italian,
language.Norwegian,
language.Indonesian,
language.Persian,
language.Russian,
}
}

func humanLocales() []*humanize.LocaleData {
return []*humanize.LocaleData{
nl.New(),
de.New(),
fa.New(),
fr.New(),
id.New(),
nb.New(),
it.New(),
fa.New(),
nb.New(),
nl.New(),
ru.New(),
}
}

Expand Down
3 changes: 3 additions & 0 deletions translations/ru.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"Admin": "Admin"
}
Loading

0 comments on commit 9ec9228

Please sign in to comment.