From 2a6257f12c7149544af5a00a35b937bb4a4e20b1 Mon Sep 17 00:00:00 2001 From: Geriano Date: Wed, 10 Aug 2022 08:13:47 +0700 Subject: [PATCH] create __ function --- resources/js/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/js/app.js b/resources/js/app.js index 4b2e51d..db6a205 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -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, }, })