diff --git a/src/App.vue b/src/App.vue index 8b15cff2..1e865e99 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,9 +1,14 @@ diff --git a/src/i18n/ca-ES/index.js b/src/i18n/ca-ES/index.js index 694fe1a1..ddb8e3f8 100644 --- a/src/i18n/ca-ES/index.js +++ b/src/i18n/ca-ES/index.js @@ -1,4 +1,13 @@ export default { + language: 'Idioma', + langs: { + en: 'Anglès', + es: 'Espanyol', + ca: 'Català', + fr: 'Francès', + mn: 'Rus', + pt: 'Portuguès' + }, date: { days: [ 'Diumenge', @@ -82,5 +91,15 @@ export default { confirm: 'Confirmar', delete: 'Esborrar', confirmDelete: 'Estàs segur que vols esborrar la línia?', - emptyList: 'Llista buida' + emptyList: 'Llista buida', + + logInAsGuest: `Accedir com a convidat`, + haveForgottenPassword: '¿Has oblidat la teva contrasenya?', + signUp: 'Registrar-me', + notACustomerYet: `Encara no ets client?`, + loginPhone: '+34 963 242 100', + loginMail: "{'info'}{'@'}{'verdnatura.es'}", + remindMe: "Recorda'm", + user: 'Usuari', + password: 'Contrasenya' }; diff --git a/src/i18n/en-US/index.js b/src/i18n/en-US/index.js index 8709c5f2..ca758322 100644 --- a/src/i18n/en-US/index.js +++ b/src/i18n/en-US/index.js @@ -12,6 +12,15 @@ export default { today: 'Today', yesterday: 'Yesterday', tomorrow: 'Tomorrow', + language: 'Language', + langs: { + en: 'English', + es: 'Spanish', + ca: 'Catalan', + fr: 'French', + mn: 'Russian', + pt: 'Portuguese' + }, date: { days: [ 'Sunday', @@ -116,5 +125,13 @@ export default { dataSaved: 'Data saved', save: 'Save', cancel: 'Cancel', - of: 'of' + of: 'of', + loginAsGuest: 'Login as guest', + haveForgottenPassword: 'Have you forgotten your password?', + signUp: 'Sign up', + notACustomerYet: 'Not a customer yet?', + loginPhone: '+34 963 242 100', + loginMail: "{'info'}{'@'}{'verdnatura.es'}", + remindMe: 'Remember me', + password: 'Password' }; diff --git a/src/i18n/fr-FR/index.js b/src/i18n/fr-FR/index.js index 7b3f09f8..a093fc8f 100644 --- a/src/i18n/fr-FR/index.js +++ b/src/i18n/fr-FR/index.js @@ -1,4 +1,13 @@ export default { + language: 'Langue', + langs: { + en: 'Anglais', + es: 'Espagnol', + ca: 'Catalan', + fr: 'Français', + mn: 'Russe', + pt: 'Portugais' + }, date: { days: [ 'Dimanche', @@ -81,5 +90,16 @@ export default { noData: 'Aucune donnée', confirm: 'Confirmer', delete: 'Effacer', - confirmDelete: 'Voulez-vous vraiment supprimer la ligne?' + confirmDelete: 'Voulez-vous vraiment supprimer la ligne?', + emptyList: 'Liste vide', + + logInAsGuest: `Entrez en tant qu'invité`, + haveForgottenPassword: 'Avez-vous oublié votre mot de passe?', + signUp: `S'inscrire`, + notACustomerYet: `Pas encore client?`, + loginPhone: '+34 963 242 100', + loginMail: "{'info'}{'@'}{'verdnatura.es'}", + remindMe: `Rappelle-moi`, + user: 'Utilisateur', + password: 'Mot de passe' }; diff --git a/src/i18n/pt-PT/index.js b/src/i18n/pt-PT/index.js index fe16ce9c..547f9853 100644 --- a/src/i18n/pt-PT/index.js +++ b/src/i18n/pt-PT/index.js @@ -1,4 +1,13 @@ export default { + language: 'Língua', + langs: { + en: 'Inglês', + es: 'Espanhol', + ca: 'Catalão', + fr: 'Francês', + mn: 'Russo', + pt: 'Português' + }, date: { days: [ 'Domingo', @@ -79,5 +88,16 @@ export default { noData: 'Sem dados', confirm: 'Confirme', delete: 'Eliminar', - confirmDelete: 'Tens certeza que queres eliminar esta linha?' + confirmDelete: 'Tens certeza que queres eliminar esta linha?', + emptyList: 'Lista vazia', + + logInAsGuest: 'Entrar como convidado', + haveForgottenPassword: 'Esqueceu a senha?', + signUp: 'Registar', + notACustomerYet: 'Ainda não é cliente?', + loginPhone: '+34 963 242 100', + loginMail: "{'info'}{'@'}{'verdnatura.es'}", + remindMe: 'Lembrar-me', + user: 'Utilizador', + password: 'Senha' }; diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index 7117c32f..b137e175 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -22,11 +22,9 @@ const toggleLeftDrawer = () => { }; onMounted(async () => { - appStore.isHeaderMounted = true; - await userStore.fetchUser(); await appStore.loadConfig(); - await userStore.supplantInit(); await appStore.getMenuLinks(); + appStore.isHeaderMounted = true; }); const logout = async () => { diff --git a/src/pages/Login/LoginView.vue b/src/pages/Login/LoginView.vue index 612c8971..6035366d 100644 --- a/src/pages/Login/LoginView.vue +++ b/src/pages/Login/LoginView.vue @@ -1,12 +1,15 @@ @@ -57,29 +72,23 @@ async function onLogin() { /> -