forked from intel/AI-Playground
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing language issues and refactoring LanguageSelector into an exter…
…nal vue file Signed-off-by: julianbollig <[email protected]>
- Loading branch information
1 parent
e9c6378
commit ebf8cbf
Showing
7 changed files
with
272 additions
and
216 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<template> | ||
<drop-selector :array="i18n.languageOptions" @change="i18n.changeLanguage"> | ||
<template #selected> | ||
<div class="flex gap-2 items-center"> | ||
<span class="rounded-full bg-green-500 w-2 h-2"></span> | ||
<span>{{ i18n.currentLanguageName }}</span> | ||
</div> | ||
</template> | ||
<template #list="slotItem"> | ||
<div class="flex gap-2 items-center"> | ||
<span class="rounded-full bg-green-500 w-2 h-2"></span> | ||
<span>{{ slotItem.item.name }}</span> | ||
</div> | ||
</template> | ||
</drop-selector> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import DropSelector from "../components/DropSelector.vue"; | ||
import {useI18N} from '@/assets/js/store/i18n'; | ||
const i18n = useI18N(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters