create __ function

This commit is contained in:
Geriano
2022-08-10 08:13:47 +07:00
parent 992b8799d8
commit 2a6257f12c

View File

@@ -35,6 +35,9 @@ const can = (abilities) => {
}
window.can = can
window.__ = (text, replacements = {}) => {
return text
}
createInertiaApp({
title: (title) => `${title} - ${appName}`,
@@ -46,6 +49,7 @@ createInertiaApp({
.mixin({
methods: {
can,
__,
themes: () => Themes,
},
})