LanguageSwitcher.vue 327 Bytes
Newer Older
Agate's avatar
I18n  
Agate committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<template>
  <select
    id="language"
    name="language"
    :value="$language.current"
    @change="$router.push({ params: { locale: $event.target.value } })"
  >
    <option
      v-for="(language, key) in $language.available"
      :key="key"
      :value="key"
      >{{ language }}</option
    >
  </select>
</template>