Skip to content

Commit

Permalink
feat: Add Russian translation
Browse files Browse the repository at this point in the history
Add support for the Russian language.
  • Loading branch information
jovandeginste committed Sep 16, 2024
1 parent 8576d44 commit 900dd0e
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 900dd0e

Please sign in to comment.