Electron Locales

由 Loen 创建, 最后一次修改 2017-07-13
app.getLocale() 返回的区域设置值

Electron使用Chromium的l10n_util库来获取区域设置。 可能的值如下:

语言代码语言名
afAfrikaans
amAmharic
arArabic
azAzerbaijani
beBelarusian
bgBulgarian
bhBihari
bnBengali
brBreton
bsBosnian
caCatalan
coCorsican
csCzech
cyWelsh
daDanish
deGerman
de-ATGerman (Austria)
de-CHGerman (Switzerland)
de-DEGerman (Germany)
elGreek
enEnglish
en-AUEnglish (Australia)
en-CAEnglish (Canada)
en-GBEnglish (UK)
en-NZEnglish (New Zealand)
en-USEnglish (US)
en-ZAEnglish (South Africa)
eoEsperanto
esSpanish
es-419Spanish (Latin America)
etEstonian
euBasque
faPersian
fiFinnish
filFilipino
foFaroese
frFrench
fr-CAFrench (Canada)
fr-CHFrench (Switzerland)
fr-FRFrench (France)
fyFrisian
gaIrish
gdScots Gaelic
glGalician
gnGuarani
guGujarati
haHausa
hawHawaiian
heHebrew
hiHindi
hrCroatian
huHungarian
hyArmenian
iaInterlingua
idIndonesian
isIcelandic
itItalian
it-CHItalian (Switzerland)
it-ITItalian (Italy)
jaJapanese
jwJavanese
kaGeorgian
kkKazakh
kmCambodian
knKannada
koKorean
kuKurdish
kyKyrgyz
laLatin
lnLingala
loLaothian
ltLithuanian
lvLatvian
mkMacedonian
mlMalayalam
mnMongolian
moMoldavian
mrMarathi
msMalay
mtMaltese
nbNorwegian (Bokmal)
neNepali
nlDutch
nnNorwegian (Nynorsk)
noNorwegian
ocOccitan
omOromo
orOriya
paPunjabi
plPolish
psPashto
ptPortuguese
pt-BRPortuguese (Brazil)
pt-PTPortuguese (Portugal)
quQuechua
rmRomansh
roRomanian
ruRussian
sdSindhi
shSerbo-Croatian
siSinhalese
skSlovak
slSlovenian
snShona
soSomali
sqAlbanian
srSerbian
stSesotho
suSundanese
svSwedish
swSwahili
taTamil
teTelugu
tgTajik
thThai
tiTigrinya
tkTurkmen
toTonga
trTurkish
ttTatar
twTwi
ugUighur
ukUkrainian
urUrdu
uzUzbek
viVietnamese
xhXhosa
yiYiddish
yoYoruba
zhChinese
zh-CNChinese (Simplified)
zh-TWChinese (Traditional)
zuZulu


以上内容是否对您有帮助:

二维码
建议反馈
二维码