create __ function
This commit is contained in:
@@ -35,6 +35,9 @@ const can = (abilities) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.can = can
|
window.can = can
|
||||||
|
window.__ = (text, replacements = {}) => {
|
||||||
|
return text
|
||||||
|
}
|
||||||
|
|
||||||
createInertiaApp({
|
createInertiaApp({
|
||||||
title: (title) => `${title} - ${appName}`,
|
title: (title) => `${title} - ${appName}`,
|
||||||
@@ -46,6 +49,7 @@ createInertiaApp({
|
|||||||
.mixin({
|
.mixin({
|
||||||
methods: {
|
methods: {
|
||||||
can,
|
can,
|
||||||
|
__,
|
||||||
themes: () => Themes,
|
themes: () => Themes,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user