export default boot(({ app }) => {
const i18n = createI18n({
locale: 'en-US',
globalInjection: true,
messages
})
console.log('i18n.boot...');
console.log('i18n', i18n);
console.log('messages', messages);
console.log('out', i18n.t('success'));
console.log('i18n.boot...ok');
// Set i18n instance on app
app.use(i18n)
})
"build": "quasar buld",
setup () {
const leftDrawerOpen = ref(false)
console.log('message 1');
const { t } = useI18n();
console.log('message 2');
console.log('message',t);
console.log('message 3');
console.log('message',t('success'));
console.log('message 4');
return {
essentialLinks: linksList,
leftDrawerOpen,
toggleLeftDrawer () {
leftDrawerOpen.value = !leftDrawerOpen.value
},
t
}
}
use PHPStan\Reflection\Php\BuiltinMethodReflection;
$method = new ReflectionMethod(BuiltinMethodReflection::class, 'getFileName');