Locale Names

pub package

A Flutter package that provide locale display names in locales, by adding extension on Locale from dart:ui.

Installation

Add locale_names as a dependency in your pubspec.yaml file.

dependencies:
  locale_names:

Import locale_names in files that it will be used:

import 'package:locale_names/locale_names.dart';

Usage

  • Get language display name in default locale, which is english.
Locale locale = Locale.fromSubtags(
        languageCode: 'zh', scriptCode: "Hans", countryCode: 'CN');
print(locale.defaultDisplayLanguage);
  • Get language and script display name in default locale, which is english.
Locale locale = Locale.fromSubtags(
        languageCode: 'zh', scriptCode: "Hans", countryCode: 'CN');
print(locale.defaultDisplayLanguageScript);
  • Get country display name in default locale, which is english.
Locale locale = Locale.fromSubtags(
        languageCode: 'zh', scriptCode: "Hans", countryCode: 'CN');
print(locale.defaultDisplayCountry);
  • Get language display name in native locale.
Locale locale = Locale.fromSubtags(
        languageCode: 'zh', scriptCode: "Hans", countryCode: 'CN');
print(locale.nativeDisplayLanguage);
  • Get language and script display name in native locale.
Locale locale = Locale.fromSubtags(
        languageCode: 'zh', scriptCode: "Hans", countryCode: 'CN');
print(locale.nativeDisplayLanguageScript);
  • Get country display name in native locale.
Locale locale = Locale.fromSubtags(
        languageCode: 'zh', scriptCode: "Hans", countryCode: 'CN');
print(locale.nativeDisplayCountry);
  • Get language display name in a specific locale.
Locale fr = Locale.fromSubtags(languageCode: "fr");
Locale locale = Locale.fromSubtags(
        languageCode: 'zh', scriptCode: "Hans", countryCode: 'CN');
print(locale.displayLanguageIn(fr));
  • Get language and script display name in a specific locale.
Locale fr = Locale.fromSubtags(languageCode: "fr");
Locale locale = Locale.fromSubtags(
        languageCode: 'zh', scriptCode: "Hans", countryCode: 'CN');
print(locale.displayLanguageScriptIn(fr));
  • Get country display name in a specific locale.
Locale fr = Locale.fromSubtags(languageCode: "fr");
Locale locale = Locale.fromSubtags(
        languageCode: 'zh', scriptCode: "Hans", countryCode: 'CN');
print(locale.displayCountryIn(fr));

Libraries

locale_names
resources/names_af
resources/names_af_NA
resources/names_af_ZA
resources/names_agq
resources/names_ak
resources/names_am
resources/names_am_ET
resources/names_ar
resources/names_ar_AE
resources/names_ar_BH
resources/names_ar_DJ
resources/names_ar_DZ
resources/names_ar_EG
resources/names_ar_EH
resources/names_ar_ER
resources/names_ar_IL
resources/names_ar_IQ
resources/names_ar_JO
resources/names_ar_KM
resources/names_ar_KW
resources/names_ar_LB
resources/names_ar_LY
resources/names_ar_MA
resources/names_ar_MR
resources/names_ar_OM
resources/names_ar_PS
resources/names_ar_QA
resources/names_ar_SA
resources/names_ar_SD
resources/names_ar_SO
resources/names_ar_SS
resources/names_ar_SY
resources/names_ar_TD
resources/names_ar_TN
resources/names_ar_YE
resources/names_as
resources/names_as_IN
resources/names_asa
resources/names_ast
resources/names_az
resources/names_az_AZ
resources/names_az_Cyrl
resources/names_az_Cyrl_AZ
resources/names_az_Latn
resources/names_bas
resources/names_be
resources/names_be_BY
resources/names_bem
resources/names_bez
resources/names_bg
resources/names_bg_BG
resources/names_bm
resources/names_bm_Latn
resources/names_bn
resources/names_bn_BD
resources/names_bn_IN
resources/names_bo
resources/names_bo_CN
resources/names_bo_IN
resources/names_br
resources/names_br_FR
resources/names_brx
resources/names_bs
resources/names_bs_BA
resources/names_bs_Cyrl
resources/names_bs_Cyrl_BA
resources/names_bs_Latn
resources/names_ca
resources/names_ca_AD
resources/names_ca_ES
resources/names_ca_FR
resources/names_ca_IT
resources/names_ccp
resources/names_ce
resources/names_ceb
resources/names_cgg
resources/names_chr
resources/names_ckb
resources/names_cs
resources/names_cs_CZ
resources/names_cu
resources/names_cy
resources/names_cy_GB
resources/names_da
resources/names_da_DK
resources/names_da_GL
resources/names_dav
resources/names_de
resources/names_de_AT
resources/names_de_BE
resources/names_de_CH
resources/names_de_DE
resources/names_de_LI
resources/names_de_LU
resources/names_dje
resources/names_dsb
resources/names_dua
resources/names_dyo
resources/names_dz
resources/names_dz_BT
resources/names_ebu
resources/names_ee
resources/names_ee_GH
resources/names_ee_TG
resources/names_el
resources/names_el_CY
resources/names_el_GR
resources/names_en
resources/names_en_150
resources/names_en_AE
resources/names_en_AG
resources/names_en_AI
resources/names_en_AS
resources/names_en_AT
resources/names_en_AU
resources/names_en_BB
resources/names_en_BE
resources/names_en_BI
resources/names_en_BM
resources/names_en_BS
resources/names_en_BW
resources/names_en_BZ
resources/names_en_CA
resources/names_en_CC
resources/names_en_CH
resources/names_en_CK
resources/names_en_CM
resources/names_en_CX
resources/names_en_CY
resources/names_en_DE
resources/names_en_DG
resources/names_en_DK
resources/names_en_DM
resources/names_en_Dsrt
resources/names_en_ER
resources/names_en_FI
resources/names_en_FJ
resources/names_en_FK
resources/names_en_FM
resources/names_en_GB
resources/names_en_GD
resources/names_en_GG
resources/names_en_GH
resources/names_en_GI
resources/names_en_GM
resources/names_en_GU
resources/names_en_GY
resources/names_en_HK
resources/names_en_IE
resources/names_en_IL
resources/names_en_IM
resources/names_en_IN
resources/names_en_IO
resources/names_en_JE
resources/names_en_JM
resources/names_en_KE
resources/names_en_KI
resources/names_en_KN
resources/names_en_KY
resources/names_en_LC
resources/names_en_LR
resources/names_en_LS
resources/names_en_MG
resources/names_en_MH
resources/names_en_MO
resources/names_en_MP
resources/names_en_MS
resources/names_en_MT
resources/names_en_MU
resources/names_en_MW
resources/names_en_MY
resources/names_en_NA
resources/names_en_NF
resources/names_en_NG
resources/names_en_NL
resources/names_en_NR
resources/names_en_NU
resources/names_en_NZ
resources/names_en_PG
resources/names_en_PH
resources/names_en_PK
resources/names_en_PN
resources/names_en_PR
resources/names_en_PW
resources/names_en_RW
resources/names_en_SB
resources/names_en_SC
resources/names_en_SD
resources/names_en_SE
resources/names_en_SG
resources/names_en_SH
resources/names_en_SI
resources/names_en_SL
resources/names_en_SS
resources/names_en_SX
resources/names_en_SZ
resources/names_en_TC
resources/names_en_TK
resources/names_en_TO
resources/names_en_TT
resources/names_en_TV
resources/names_en_TZ
resources/names_en_UG
resources/names_en_UM
resources/names_en_US
resources/names_en_VC
resources/names_en_VG
resources/names_en_VI
resources/names_en_VU
resources/names_en_WS
resources/names_en_ZA
resources/names_en_ZM
resources/names_en_ZW
resources/names_eo
resources/names_es
resources/names_es_419
resources/names_es_AR
resources/names_es_BO
resources/names_es_CL
resources/names_es_CO
resources/names_es_CR
resources/names_es_CU
resources/names_es_DO
resources/names_es_EA
resources/names_es_EC
resources/names_es_ES
resources/names_es_GQ
resources/names_es_GT
resources/names_es_HN
resources/names_es_IC
resources/names_es_MX
resources/names_es_NI
resources/names_es_PA
resources/names_es_PE
resources/names_es_PH
resources/names_es_PR
resources/names_es_PY
resources/names_es_SV
resources/names_es_US
resources/names_es_UY
resources/names_es_VE
resources/names_et
resources/names_et_EE
resources/names_eu
resources/names_eu_ES
resources/names_ewo
resources/names_fa
resources/names_fa_AF
resources/names_fa_IR
resources/names_ff
resources/names_ff_Adlm
resources/names_fi
resources/names_fi_FI
resources/names_fil
resources/names_fo
resources/names_fo_DK
resources/names_fo_FO
resources/names_fr
resources/names_fr_BE
resources/names_fr_BF
resources/names_fr_BI
resources/names_fr_BJ
resources/names_fr_BL
resources/names_fr_CA
resources/names_fr_CD
resources/names_fr_CF
resources/names_fr_CG
resources/names_fr_CH
resources/names_fr_CI
resources/names_fr_CM
resources/names_fr_DJ
resources/names_fr_DZ
resources/names_fr_FR
resources/names_fr_GA
resources/names_fr_GF
resources/names_fr_GN
resources/names_fr_GP
resources/names_fr_GQ
resources/names_fr_HT
resources/names_fr_KM
resources/names_fr_LU
resources/names_fr_MA
resources/names_fr_MC
resources/names_fr_MF
resources/names_fr_MG
resources/names_fr_ML
resources/names_fr_MQ
resources/names_fr_MR
resources/names_fr_MU
resources/names_fr_NC
resources/names_fr_NE
resources/names_fr_PF
resources/names_fr_PM
resources/names_fr_RE
resources/names_fr_RW
resources/names_fr_SC
resources/names_fr_SN
resources/names_fr_SY
resources/names_fr_TD
resources/names_fr_TG
resources/names_fr_TN
resources/names_fr_VU
resources/names_fr_WF
resources/names_fr_YT
resources/names_fur
resources/names_fy
resources/names_ga
resources/names_ga_IE
resources/names_gd
resources/names_gd_GB
resources/names_gl
resources/names_gl_ES
resources/names_gsw
resources/names_gu
resources/names_gu_IN
resources/names_guz
resources/names_gv
resources/names_ha
resources/names_ha_GH
resources/names_ha_Latn
resources/names_ha_NE
resources/names_ha_NG
resources/names_haw
resources/names_he
resources/names_he_IL
resources/names_hi
resources/names_hi_IN
resources/names_hr
resources/names_hr_BA
resources/names_hr_HR
resources/names_hsb
resources/names_hu
resources/names_hu_HU
resources/names_hy
resources/names_hy_AM
resources/names_ia
resources/names_id
resources/names_id_ID
resources/names_ig
resources/names_ig_NG
resources/names_ii
resources/names_is
resources/names_is_IS
resources/names_it
resources/names_it_CH
resources/names_it_IT
resources/names_it_SM
resources/names_ja
resources/names_ja_JP
resources/names_jgo
resources/names_jmc
resources/names_jv
resources/names_jv_ID
resources/names_ka
resources/names_ka_GE
resources/names_kab
resources/names_kam
resources/names_kde
resources/names_kea
resources/names_khq
resources/names_ki
resources/names_kk
resources/names_kk_Cyrl
resources/names_kk_KZ
resources/names_kkj
resources/names_kl
resources/names_kl_GL
resources/names_kln
resources/names_km
resources/names_km_KH
resources/names_kn
resources/names_kn_IN
resources/names_ko
resources/names_ko_KP
resources/names_ko_KR
resources/names_kok
resources/names_ks
resources/names_ks_Arab
resources/names_ksb
resources/names_ksf
resources/names_ksh
resources/names_ku
resources/names_kw
resources/names_kw_GB
resources/names_ky
resources/names_ky_Cyrl
resources/names_ky_KG
resources/names_lag
resources/names_lb
resources/names_lg
resources/names_lkt
resources/names_ln
resources/names_lo
resources/names_lo_LA
resources/names_lrc
resources/names_lt
resources/names_lt_LT
resources/names_lu
resources/names_lu_CD
resources/names_luo
resources/names_luy
resources/names_lv
resources/names_lv_LV
resources/names_mai
resources/names_mas
resources/names_mer
resources/names_mfe
resources/names_mg
resources/names_mg_MG
resources/names_mgh
resources/names_mgo
resources/names_mi
resources/names_mk
resources/names_mk_MK
resources/names_ml
resources/names_ml_IN
resources/names_mn
resources/names_mn_Cyrl
resources/names_mn_MN
resources/names_mni
resources/names_mr
resources/names_mr_IN
resources/names_ms
resources/names_ms_BN
resources/names_ms_Latn
resources/names_ms_MY
resources/names_ms_SG
resources/names_mt
resources/names_mt_MT
resources/names_mua
resources/names_my
resources/names_my_MM
resources/names_mzn
resources/names_naq
resources/names_nb
resources/names_nb_NO
resources/names_nb_SJ
resources/names_nd
resources/names_nds
resources/names_ne
resources/names_ne_IN
resources/names_ne_NP
resources/names_nl
resources/names_nl_AW
resources/names_nl_BE
resources/names_nl_BQ
resources/names_nl_CW
resources/names_nl_NL
resources/names_nl_SR
resources/names_nl_SX
resources/names_nmg
resources/names_nn
resources/names_nn_NO
resources/names_nnh
resources/names_no
resources/names_nus
resources/names_nyn
resources/names_om
resources/names_or
resources/names_or_IN
resources/names_os
resources/names_os_GE
resources/names_os_RU
resources/names_pa
resources/names_pa_Arab
resources/names_pa_Guru
resources/names_pa_IN
resources/names_pa_PK
resources/names_pcm
resources/names_pl
resources/names_prg
resources/names_ps
resources/names_ps_AF
resources/names_ps_PK
resources/names_pt
resources/names_pt_AO
resources/names_pt_BR
resources/names_pt_CV
resources/names_pt_GW
resources/names_pt_MO
resources/names_pt_MZ
resources/names_pt_PT
resources/names_pt_ST
resources/names_pt_TL
resources/names_qu
resources/names_qu_BO
resources/names_qu_EC
resources/names_qu_PE
resources/names_rm
resources/names_rm_CH
resources/names_rn
resources/names_ro
resources/names_ro_MD
resources/names_ro_RO
resources/names_rof
resources/names_ru
resources/names_ru_BY
resources/names_ru_KG
resources/names_ru_KZ
resources/names_ru_MD
resources/names_ru_RU
resources/names_ru_UA
resources/names_rw
resources/names_rwk
resources/names_sah
resources/names_saq
resources/names_sat
resources/names_sbp
resources/names_sd
resources/names_sd_Deva
resources/names_se
resources/names_se_FI
resources/names_se_NO
resources/names_se_SE
resources/names_seh
resources/names_ses
resources/names_sg
resources/names_sg_CF
resources/names_sh
resources/names_sh_BA
resources/names_shi
resources/names_shi_Latn
resources/names_shi_Tfng
resources/names_si
resources/names_si_LK
resources/names_sk
resources/names_sl
resources/names_sl_SI
resources/names_smn
resources/names_sn
resources/names_sn_ZW
resources/names_so
resources/names_so_DJ
resources/names_so_ET
resources/names_so_KE
resources/names_so_SO
resources/names_sq
resources/names_sq_AL
resources/names_sq_MK
resources/names_sq_XK
resources/names_sr
resources/names_sr_BA
resources/names_sr_Cyrl
resources/names_sr_Cyrl_BA
resources/names_sr_Cyrl_ME
resources/names_sr_Cyrl_XK
resources/names_sr_Latn
resources/names_sr_Latn_BA
resources/names_sr_Latn_ME
resources/names_sr_Latn_RS
resources/names_sr_Latn_XK
resources/names_sr_ME
resources/names_sr_RS
resources/names_sr_XK
resources/names_st
resources/names_su
resources/names_sv
resources/names_sv_AX
resources/names_sv_FI
resources/names_sv_SE
resources/names_sw
resources/names_sw_CD
resources/names_sw_KE
resources/names_sw_TZ
resources/names_sw_UG
resources/names_swc
resources/names_ta
resources/names_ta_IN
resources/names_ta_LK
resources/names_ta_MY
resources/names_ta_SG
resources/names_te
resources/names_te_IN
resources/names_teo
resources/names_tg
resources/names_tg_TJ
resources/names_th
resources/names_th_TH
resources/names_ti
resources/names_ti_ER
resources/names_ti_ET
resources/names_tk
resources/names_tl
resources/names_to
resources/names_to_TO
resources/names_tr
resources/names_tr_CY
resources/names_tr_TR
resources/names_tt
resources/names_tt_RU
resources/names_twq
resources/names_tzm
resources/names_ug
resources/names_ug_Arab
resources/names_uk
resources/names_uk_UA
resources/names_ur
resources/names_ur_IN
resources/names_ur_PK
resources/names_uz
resources/names_uz_AF
resources/names_uz_Arab
resources/names_uz_Cyrl
resources/names_uz_Cyrl_UZ
resources/names_uz_Latn
resources/names_uz_Latn_UZ
resources/names_uz_UZ
resources/names_vai
resources/names_vai_Latn
resources/names_vi
resources/names_vi_VN
resources/names_vo
resources/names_vun
resources/names_wae
resources/names_wo
resources/names_xh
resources/names_xog
resources/names_yav
resources/names_yi
resources/names_yo
resources/names_yo_BJ
resources/names_yo_NG
resources/names_yue
resources/names_yue_Hans
resources/names_zgh
resources/names_zh
resources/names_zh_CN
resources/names_zh_Hans
resources/names_zh_Hans_HK
resources/names_zh_Hans_MO
resources/names_zh_Hans_SG
resources/names_zh_Hant
resources/names_zh_Hant_HK
resources/names_zh_Hant_MO
resources/names_zh_Hant_TW
resources/names_zh_HK
resources/names_zh_MO
resources/names_zh_SG
resources/names_zh_TW
resources/names_zu
resources/names_zu_ZA