Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Vue component which shows the flag of the country from which the language comes from

License

NotificationsYou must be signed in to change notification settings

qWici/vue-lang-code-flags

Repository files navigation

Vue component which shows the flag of the country from which the language comes from

Vue.js 2 compatibleVersionLicense

How to install

Get the package from NPM:

npm install vue-lang-code-flags --saveoryarn add vue-lang-code-flags --save

How to use

RegisterLangFlag component in your app. You can use two approaches:

  • inmain.js you can mount it as a global Vue component:
importVuefrom'vue';importLangFlagfrom'vue-lang-code-flags';Vue.component('lang-flag',LangFlag);
  • in a specific component (e.g.:Component.vue):
importLangFlagfrom'vue-lang-code-flags';newVue({components:{    LangFlag,},});

Then, after the proper mounting, in your template you can call it like this:

<lang-flagiso="en"/><lang-flagiso="ja":squared="false"/><lang-flagiso="zh"title="Some title"/>

API

Mandatory properties

PropertyDescriptionTypeValue
isoISO 639-1 identifier of the languageStringone of the values definedhere

Optional properties

PropertyDescriptionTypeDefault
squaredSquared flagBooleantrue
titleTitleStringnull

Available Flags

Here follows the list of the currently available flags.They are identified using theISO 639-1 standard.

LanguageCode
Arabicar
Armenianam
Azerbaijaniaz
Belarusianbe
Bengalibn
Bulgarianbg
Chinesezh
Catalanca
Czechcs
Dutchnl
Englishen
Estonianet
Frenchfr
Germande
Greekel
Hausaha
Hindihi
Hungarianhu
Indonesianid
Italianit
Japaneseja
Javanesejv
Khmerkm
Koreanko
Latvianlv
Malayms
Marathimr
Dutchnl
Persianfa
Polishpl
Portuguesept
Romanianro
Russianru
Spanishes
Swahilisw
Tamilta
Telugute
Thaith
Turkishtr
Uzbekuz
Vietnamesevi

Contributing

Please follow the guidelineshere.

About

Vue component which shows the flag of the country from which the language comes from

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

[8]ページ先頭

©2009-2025 Movatter.jp