Skip to main content

RFC5646

Overview

Use the RFC5646 transform to convert an incoming string into an RFC 5646 language tag value. The incoming data must be either a recognized language name or a three-letter abbreviation of locale’s language:

A three-letter abbreviation of locale’s language (SPA)

The name for the language (Spanish)

The output value will be a RFC5646 language tag representing the locale (es).

info

If the input string to the transform does not represent a valid country code or country name, the transform returns null.

Use the list below to see how your country code or name will be converted.

RFC5646 Conversion Table
Language/AbbreviationRFC5646 Tag
AARaa
ABKab
AFRaf
AKAak
AMHam
ARAar
ARGan
ASMas
AVAav
AVEae
AYMay
AZEaz
Afrikaansaf
Afrikaans (South Africa)af_ZA
Albaniansq
Albanian (Albania)sq_AL
Arabicar
Arabic (Algeria)ar_DZ
Arabic (Bahrain)ar_BH
Arabic (Egypt)ar_EG
Arabic (Iraq)ar_IQ
Arabic (Jordan)ar_JO
Arabic (Kuwait)ar_KW
Arabic (Lebanon)ar_LB
Arabic (Libya)ar_LY
Arabic (Morocco)ar_MA
Arabic (Oman)ar_OM
Arabic (Qatar)ar_QA
Arabic (Saudi Arabia)ar_SA
Arabic (Syria)ar_SY
Arabic (Tunisia)ar_TN
Arabic (U.A.E.)ar_AE
Arabic (Yemen)ar_YE
Armenianhy
Armenian (Armenia)hy_AM
Azeri (Cyrillic) (Azerbaijan)az_AZ_#Cyrl
Azeri (Latin)az
Azeri (Latin) (Azerbaijan)az_AZ
BAKba
BAMbm
BELbe
BENbn
BIHbh
BISbi
BODbo
BOSbs
BREbr
BULbg
Basqueeu
Basque (Spain)eu_ES
Belarusianbe
Belarusian (Belarus)be_BY
Bosnian (Bosnia and Herzegovina)bs_BA
Bulgarianbg
Bulgarian (Bulgaria)bg_BG
CATca
CEScs
CHAch
CHEce
CHUcu
CHVcv
CORkw
COSco
CREcr
CYMcy
Catalanca
Catalan (Spain)ca_ES
Chinesezh
Chinese (Hong Kong)zh_HK
Chinese (Macau)zh_MO
Chinese (S)zh_CN
Chinese (Singapore)zh_SG
Chinese (T)zh_TW
Croatianhr
Croatian (Bosnia and Herzegovina)hr_BA
Croatian (Croatia)hr_HR
Czechcs
Czech (Czech Republic)cs_CZ
DANda
DEUde
DIVdv
DZOdz
Danishda
Danish (Denmark)da_DK
Divehidv
Divehi (Maldives)dv_MV
Dutchnl
Dutch (Belgium)nl_BE
Dutch (Netherlands)nl_NL
ELLel
ENGen
EPOeo
ESTet
EUSeu
EWEee
Englishen
English (Australia)en_AU
English (Belize)en_BZ
English (Canada)en_CA
English (Caribbean)en_CB
English (Ireland)en_IE
English (Jamaica)en_JM
English (New Zealand)en_NZ
English (Republic of the Philippines)en_PH
English (South Africa)en_ZA
English (Trinidad and Tobago)en_TT
English (United Kingdom)en_GB
English (United States)en_US
English (Zimbabwe)en_ZW
Esperantoeo
Estonianet
Estonian (Estonia)et_EE
FAOfo
FASfa
FIJfj
FINfi
FRAfr
FRYfy
FULff
FYRO Macedonianmk
FYRO Macedonian (Former Yugoslav Republic of Macedonia)mk_MK
Faroesefo
Faroese (Faroe Islands)fo_FO
Farsifa
Farsi (Iran)fa_IR
Finnishfi
Finnish (Finland)fi_FI
Frenchfr
French (Belgium)fr_BE
French (Canada)fr_CA
French (France)fr_FR
French (Luxembourg)fr_LU
French (Principality of Monaco)fr_MC
French (Switzerland)fr_CH
GLAgd
GLEga
GLGgl
GLVgv
GRNgn
GUJgu
Galiciangl
Galician (Spain)gl_ES
Georgianka
Georgian (Georgia)ka_GE
Germande
German (Austria)de_AT
German (Germany)de_DE
German (Liechtenstein)de_LI
German (Luxembourg)de_LU
German (Switzerland)de_CH
Greekel
Greek (Greece)el_GR
Gujaratigu
Gujarati (India)gu_IN
HATht
HAUha
HEBiw
HERhz
HINhi
HMOho
HRVhr
HUNhu
HYEhy
Hebrewiw
Hebrew (Israel)iw_IL
Hindihi
Hindi (India)hi_IN
Hungarianhu
Hungarian (Hungary)hu_HU
IBOig
IDOio
IIIii
IKUiu
ILEie
INAia
INDin
IPKik
ISLis
ITAit
Icelandicis
Icelandic (Iceland)is_IS
Indonesianin
Indonesian (Indonesia)in_ID
Italianit
Italian (Italy)it_IT
Italian (Switzerland)it_CH
JAVjv
JPNja
Japaneseja
Japanese (Japan)ja_JP
KALkl
KANkn
KASks
KATka
KAUkr
KAZkk
KHMkm
KIKki
KINrw
KIRky
KOMkv
KONkg
KORko
KUAkj
KURku
Kannadakn
Kannada (India)kn_IN
Kazakhkk
Kazakh (Kazakhstan)kk_KZ
Konkanikok
Konkani (India)kok_IN
Koreanko
Korean (Korea)ko_KR
Kyrgyzky
Kyrgyz (Kyrgyzstan)ky_KG
LAOlo
LATla
LAVlv
LIMli
LINln
LITlt
LTZlb
LUBlu
LUGlg
Latvianlv
Latvian (Latvia)lv_LV
Lithuanianlt
Lithuanian (Lithuania)lt_LT
MAHmh
MALml
MARmr
MKDmk
MLGmg
MLTmt
MOLmo
MONmn
MRImi
MSAms
MYAmy
Malayms
Malay (Brunei Darussalam)ms_BN
Malay (Malaysia)ms_MY
Maltesemt
Maltese (Malta)mt_MT
Maorimi
Maori (New Zealand)mi_NZ
Marathimr
Marathi (India)mr_IN
Mongolianmn
Mongolian (Mongolia)mn_MN
NAUna
NAVnv
NBLnr
NDEnd
NDOng
NEPne
NLDnl
NNOnn
NOBnb
NORno
NYAny
Northern Sothons
Northern Sotho (South Africa)ns_ZA
Norwegian (Bokm?l)nb
Norwegian (Bokm?l) (Norway)nb_NO
Norwegian (Nynorsk) (Norway)nn_NO
OCIoc
OJIoj
ORIor
ORMom
OSSos
PANpa
PLIpi
POLpl
PORpt
PUSps
Pashtops
Pashto (Afghanistan)ps_AR
Polishpl
Polish (Poland)pl_PL
Portuguesept
Portuguese (Brazil)pt_BR
Portuguese (Portugal)pt_PT
Punjabipa
Punjabi (India)pa_IN
QUEqu
Quechuaqu
Quechua (Bolivia)qu_BO
Quechua (Ecuador)qu_EC
Quechua (Peru)qu_PE
ROHrm
RONro
RUNrn
RUSru
Romanianro
Romanian (Romania)ro_RO
Russianru
Russian (Russia)ru_RU
SAGsg
SANsa
SINsi
SLKsk
SLVsl
SMEse
SMOsm
SNAsn
SNDsd
SOMso
SOTst
SPAes
SQIsq
SRDsc
SRPsr
SSWss
SUNsu
SWAsw
SWEsv
Samise
Sami (Finland)se_FI
Sami (Norway)se_NO
Sami (Sweden)se_SE
Sanskritsa
Sanskrit (India)sa_IN
Serbian (Cyrillic) (Bosnia and Herzegovina)sr_BA_#Cyrl
Serbian (Cyrillic) (Serbia and Montenegro)sr_SP_#Cyrl
Serbian (Latin) (Bosnia and Herzegovina)sr_BA
Serbian (Latin) (Serbia and Montenegro)sr_SP
Slovaksk
Slovak (Slovakia)sk_SK
Sloveniansl
Slovenian (Slovenia)sl_SI
Spanishes
Spanish (Argentina)es_AR
Spanish (Bolivia)es_BO
Spanish (Chile)es_CL
Spanish (Colombia)es_CO
Spanish (Costa Rica)es_CR
Spanish (Dominican Republic)es_DO
Spanish (Ecuador)es_EC
Spanish (El Salvador)es_SV
Spanish (Guatemala)es_GT
Spanish (Honduras)es_HN
Spanish (Mexico)es_MX
Spanish (Nicaragua)es_NI
Spanish (Panama)es_PA
Spanish (Paraguay)es_PY
Spanish (Peru)es_PE
Spanish (Puerto Rico)es_PR
Spanish (Spain)es_ES
Spanish (Uruguay)es_UY
Spanish (Venezuela)es_VE
Swahilisw
Swahili (Kenya)sw_KE
Swedishsv
Swedish (Finland)sv_FI
Swedish (Sweden)sv_SE
Syriacsyr
Syriac (Syria)syr_SY
TAHty
TAMta
TATtt
TELte
TGKtg
TGLtl
THAth
TIRti
TONto
TSNtn
TSOts
TUKtk
TURtr
TWItw
Tagalogtl
Tagalog (Philippines)tl_PH
Tamilta
Tamil (India)ta_IN
Tatartt
Tatar (Russia)tt_RU
Telugute
Telugu (India)te_IN
Thaith
Thai (Thailand)th_TH
Tsongats
Tswanatn
Tswana (South Africa)tn_ZA
Turkishtr
Turkish (Turkey)tr_TR
UIGug
UKRuk
URDur
UZBuz
Ukrainianuk
Ukrainian (Ukraine)uk_UA
Urduur
Urdu (Islamic Republic of Pakistan)ur_PK
Uzbek (Cyrillic) (Uzbekistan)uz_UZ_#Cyrl
Uzbek (Latin)uz
Uzbek (Latin) (Uzbekistan)uz_UZ
VENve
VIEvi
VOLvo
Vietnamesevi
Vietnamese (Viet Nam)vi_VN
WLNwa
WOLwo
Welshcy
Welsh (United Kingdom)cy_GB
XHOxh
Xhosaxh
Xhosa (South Africa)xh_ZA
YIDji
YORyo
ZHAza
ZHOzh
ZULzu
Zuluzu
Zulu (South Africa)zu_ZA

Transform Structure​

The transform for rfc5646 only requires the transform's type and name attributes:

{
"type": "rfc5646",
"name": "RFC5646 Transform"
}

Attributes

  • Required Attributes

    • type - This must always be set to rfc5646.
    • name - This is a required attribute for all transforms. It represents the name of the transform as it will appear in the UI's dropdown menus.
  • Optional Attributes

    • requiresPeriodicRefresh - This true or false value indicates whether the transform logic should be reevaluated every evening as part of the identity refresh process.
    • input - This is an optional attribute that can explicitly define the input data passed into the transform logic. If no input is provided, the transform takes its input from the source and attribute combination configured with the UI.

Examples

This transform transforms a language name into the RFC5646 language format.

Input: Spanish

Output: es

Transform Request Body:

{
"type": "rfc5646",
"name": "RFC5646 Transform"
}