Skip to content

Commit 1336ac3

Browse files
committed
fix: export Languages
1 parent 333fad5 commit 1336ac3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/command/trans.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
)
77

88
// https://en.wikipedia.org/wiki/IETF_language_tag
9-
var languages = map[string]string{
9+
var Languages = map[string]string{
1010
"ar": "Arabic",
1111
"cn": "Chinese",
1212
"de": "German",
@@ -49,7 +49,7 @@ func (c *Trans) Prompts(input string) []string {
4949
}
5050

5151
lang, text := input[:index], input[index+1:]
52-
if fullName, ok := languages[lang]; ok {
52+
if fullName, ok := Languages[lang]; ok {
5353
lang = fullName
5454
}
5555
return []string{

0 commit comments

Comments
 (0)