mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-11-21 01:21:54 +08:00
add flags to the lang modal
Signed-off-by: MiniDigger <admin@benndorf.dev>
This commit is contained in:
parent
3c19ba7463
commit
881e9e981c
@ -10,13 +10,17 @@
|
||||
<v-card-text>
|
||||
<v-list dense>
|
||||
<v-subheader>{{ $t('lang.available') }}</v-subheader>
|
||||
<v-list-item-group v-model="lang" @change="changeLang">
|
||||
<v-list-item-group v-model="lang" mandatory @change="changeLang">
|
||||
<v-list-item v-for="locale in availableLocales" :key="locale.code" :value="locale.code">
|
||||
<v-list-item-icon>
|
||||
{{ locale.icon }}
|
||||
<img
|
||||
height="24px"
|
||||
:alt="'flag ' + locale.icon"
|
||||
:src="'https://purecatamphetamine.github.io/country-flag-icons/3x2/' + locale.icon + '.svg'"
|
||||
/>
|
||||
</v-list-item-icon>
|
||||
<v-list-item-content>
|
||||
{{ locale.name }}
|
||||
{{ locale.name.includes('crwdns') ? 'In-Context Dummy' : locale.name }}
|
||||
</v-list-item-content>
|
||||
</v-list-item>
|
||||
</v-list-item-group>
|
||||
|
@ -3,7 +3,7 @@ export default {
|
||||
code: 'en',
|
||||
iso: 'en-US',
|
||||
name: 'English',
|
||||
icon: 'Test'
|
||||
icon: 'US'
|
||||
},
|
||||
general: {
|
||||
close: 'Close',
|
||||
|
Loading…
Reference in New Issue
Block a user