Skip to content

Commit df35f4a

Browse files
authored
FEATURE: Add support for Samoan (sm) and all other languages supported by Microsoft (#186)
There is Samoan support on Microsoft - https://learn.microsoft.com/en-us/azure/ai-services/translator/language-support. So there should really not be a reason why we don't support it. This commit adds the language pairs into the Microsoft provider.
1 parent 094ffeb commit df35f4a

File tree

1 file changed

+56
-1
lines changed

1 file changed

+56
-1
lines changed

app/services/discourse_translator/microsoft.rb

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,59 +35,114 @@ class Microsoft < Base
3535
fa_IR: "fa",
3636
fi: "fi",
3737
fr: "fr",
38+
ga: "ga",
3839
gl: "gl",
40+
gl: "gl",
41+
gom: "gom",
42+
gu: "gu",
43+
ha: "ha",
3944
he: "he",
4045
hi: "hi",
4146
hr: "hr",
47+
hsb: "hsb",
48+
ht: "ht",
4249
hu: "hu",
4350
hy: "hy",
4451
id: "id",
52+
ig: "ig",
53+
ikt: "ikt",
4554
is: "is",
4655
it: "it",
56+
iu: "iu",
57+
iu_Latn: "iu-Latn",
4758
ja: "ja",
4859
ka: "ka",
4960
kk: "kk",
5061
km: "km",
62+
kmr: "kmr",
5163
kn: "kn",
5264
ko: "ko",
65+
ks: "ks",
5366
ku: "ku",
5467
ky: "ky",
68+
ln: "ln",
5569
lo: "lo",
5670
lt: "lt",
71+
lug: "lug",
5772
lv: "lv",
73+
lzh: "lzh",
74+
mai: "mai",
5875
mg: "mg",
76+
mi: "mi",
5977
mk: "mk",
6078
ml: "ml",
6179
mn: "mn-Cyrl",
80+
mn_Cyrl: "mn-Cyrl",
81+
mn_Mong: "mn-Mong",
6282
mr: "mr",
6383
ms: "ms",
84+
mt: "mt",
85+
mww: "mww",
86+
my: "my",
87+
nb: "nb",
6488
nb_NO: "nb",
6589
ne: "ne",
6690
nl: "nl",
91+
nso: "nso",
92+
nya: "nya",
93+
or: "or",
94+
otq: "otq",
6795
pa: "pa",
96+
pl: "pl",
6897
pl_PL: "pl",
98+
prs: "prs",
99+
ps: "ps",
69100
pt: "pt",
70101
pt_BR: "pt",
102+
pt_pt: "pt",
71103
ro: "ro",
72104
ru: "ru",
105+
run: "run",
106+
rw: "rw",
107+
sd: "sd",
108+
si: "si",
73109
sk: "sk",
74110
sl: "sl",
111+
sm: "sm",
112+
sn: "sn",
113+
so: "so",
75114
sq: "sq",
76115
sr: "sr-Cyrl",
77-
"sr-Latn": "sr-Latn",
116+
sr_Cyrl: "sr-Cyrl",
117+
sr_Latn: "sr-Latn",
118+
st: "st",
78119
sv: "sv",
79120
sw: "sw",
80121
ta: "ta",
81122
te: "te",
82123
th: "th",
124+
ti: "ti",
125+
tk: "tk",
126+
tlh_Latn: "tlh-Latn",
127+
tlh_Piqd: "tlh-Piqd",
128+
tn: "tn",
129+
to: "to",
130+
tr: "tr",
83131
tr_TR: "tr",
84132
tt: "tt",
133+
ty: "ty",
134+
ug: "ug",
85135
uk: "uk",
86136
ur: "ur",
87137
uz: "uz",
88138
vi: "vi",
139+
xh: "xh",
140+
yo: "yo",
141+
yua: "yua",
142+
yue: "yue",
89143
zh_CN: "zh-Hans",
90144
zh_TW: "zh-Hant",
145+
zu: "zu",
91146
}
92147

93148
def self.access_token_key

0 commit comments

Comments
 (0)