fix: refs #6426 create constants #1228

Merged
carlossa merged 16 commits from 6426-refactorConstants into dev 2025-02-07 08:22:55 +00:00
2 changed files with 5 additions and 2 deletions
Showing only changes of commit 0338e0ea45 - Show all commits

View File

@ -0,0 +1,4 @@
// src/boot/defaults/constants.js
export const langs = ['en', 'es'];
export const decimalPlaces = 2;
carlossa marked this conversation as resolved Outdated
Outdated
Review

export {
langs: ['en', 'es'],
decimalPlaces: 2
}

export { langs: ['en', 'es'], decimalPlaces: 2 }

View File

@ -2,9 +2,9 @@
import { Dark, Quasar } from 'quasar';
import { computed } from 'vue';
import { useI18n } from 'vue-i18n';
import { langs } from 'src/boot/defaults/constants.js'; // Importamos 'langs'
carlossa marked this conversation as resolved Outdated
Outdated
Review

Quitar comentario

Quitar comentario
Outdated
Review

Quitar comentario, no la linea entera

Quitar comentario, no la linea entera
const { t, locale } = useI18n();
const userLocale = computed({
get() {
return locale.value;
@ -35,7 +35,6 @@ const darkMode = computed({
Dark.set(value);
},
});
const langs = ['en', 'es'];
</script>
<template>