diff --git a/src/components/TheLanguageSelector.vue b/src/components/TheLanguageSelector.vue new file mode 100644 index 000000000..5df44498a --- /dev/null +++ b/src/components/TheLanguageSelector.vue @@ -0,0 +1,51 @@ + + + diff --git a/src/components/TheUserMenu.vue b/src/components/TheUserMenu.vue index ef0cf326d..090bdc2c3 100644 --- a/src/components/TheUserMenu.vue +++ b/src/components/TheUserMenu.vue @@ -19,28 +19,7 @@ - - - - - - - + { - locale.value = lang; - setLocalStorage('preferredLocale', lang); -}; - - const menuItems = computed(() => { return [{ text: t('global.logout'), icon: 'logout', page: { name: ROUTE_NAME_LOGOUT }, cyName: 'Log Out' }]; }); diff --git a/src/views/LoginView.vue b/src/views/LoginView.vue index ff3523545..8d6c01cfe 100644 --- a/src/views/LoginView.vue +++ b/src/views/LoginView.vue @@ -7,15 +7,18 @@
@@ -180,6 +183,7 @@ import { ROUTE_NAME_LOGIN, ROUTE_NAME_SIGNUP } from '@/router'; import BaseSnackbar from '@/components/Global/BaseSnackbar.vue'; import MarkdownContent from '@/components/Global/MarkdownContent.vue'; import BaseVideo from '../components/Global/BaseVideo.vue'; +import TheLanguageSelector from '../components/TheLanguageSelector.vue'; export default { @@ -188,6 +192,7 @@ export default { BaseSnackbar, BaseVideo, MarkdownContent, + TheLanguageSelector }, setup() { // Vuetify has its own translation layer that isn't very good