package
Version:
v0.0.0-...-5ed6f2c
Opens a new window with list of versions in this module.
Published: Mar 29, 2024
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
语言代码
和风天气支持30+种主流语言,包括中英德法西意日韩俄泰等多语言,你可以使用lang参数随时调用。以下是在API或SDK中的多语言参数。
原文档地址: https://dev.qweather.com/docs/resource/language/
提示:默认语言为中文,如一些城市名称没有中文的,使用英文或本地语言代替。
注意:某些数据(如生活指数、灾害预警的详情)中的部分内容仅支持本地语言或英语。
语言名称 |
API 代码 |
iOS SDK常量属性 |
Android SDK常量属性 |
简体中文 |
zh-hans、zh |
LANGUAGE_TYPE_ZH |
ZH_HANS |
繁体中文 |
zh-hant |
LANGUAGE_TYPE_ZHHANT |
ZH_HANT |
英文 |
en |
LANGUAGE_TYPE_EN |
ENGLISH |
德语 |
de |
LANGUAGE_TYPE_DE |
GERMAN |
西班牙语 |
es |
LANGUAGE_TYPE_ES |
SPANISH |
法语 |
fr |
LANGUAGE_TYPE_FR |
FRENCH |
意大利语 |
it |
LANGUAGE_TYPE_IT |
ITALIAN |
日语 |
ja |
LANGUAGE_TYPE_JP |
JAPANESE |
韩语 |
ko |
LANGUAGE_TYPE_KR |
KOREAN |
俄语 |
ru |
LANGUAGE_TYPE_RU |
RUSSIAN |
印地语 |
hi |
LANGUAGE_TYPE_IN |
HINDI |
泰语 |
th |
LANGUAGE_TYPE_TH |
THAI |
阿拉伯语 |
ar |
LANGUAGE_TYPE_AR |
AR |
葡萄牙语 |
pt |
LANGUAGE_TYPE_PT |
PT |
孟加拉语 |
bn |
LANGUAGE_TYPE_BN |
BN |
马来语 |
ms |
LANGUAGE_TYPE_MS |
MS |
荷兰语 |
nl |
LANGUAGE_TYPE_NL |
NL |
希腊语 |
el |
LANGUAGE_TYPE_EL |
EL |
拉丁语 |
la |
LANGUAGE_TYPE_LA |
LA |
瑞典语 |
sv |
LANGUAGE_TYPE_SV |
SV |
印尼语 |
id |
LANGUAGE_TYPE_ID |
ID |
波兰语 |
pl |
LANGUAGE_TYPE_PL |
PL |
土耳其语 |
tr |
LANGUAGE_TYPE_TR |
TR |
捷克语 |
cs |
LANGUAGE_TYPE_CS |
CS |
爱沙尼亚语 |
et |
LANGUAGE_TYPE_ET |
ET |
越南语 |
vi |
LANGUAGE_TYPE_VI |
VI |
菲律宾语 |
fil |
LANGUAGE_TYPE_FIL |
fFIL |
芬兰语 |
fi |
LANGUAGE_TYPE_FI |
FI |
希伯来语 |
he |
LANGUAGE_TYPE_HE |
HE |
冰岛语 |
is |
LANGUAGE_TYPE_IS |
IS |
挪威语 |
nb |
LANGUAGE_TYPE_NB |
NB |
Documentation
¶
View Source
const (
ZHCN = "zh"
ZHTW = "zh-hant"
EN = "en"
DE = "de"
ES = "es"
FR = "fr"
IT = "it"
JA = "ja"
KO = "ko"
RU = "ru"
HI = "hi"
TH = "th"
AR = "ar"
PT = "pt"
BN = "bn"
MS = "ms"
NL = "nl"
EL = "el"
LA = "la"
SV = "sv"
ID = "id"
PL = "pl"
TR = "tr"
CS = "cs"
ET = "et"
VI = "vi"
FIL = "fil"
FI = "fi"
HE = "he"
IS = "is"
NB = "nb"
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.