Skip to content

Commit

Permalink
added localization to window
Browse files Browse the repository at this point in the history
  • Loading branch information
sriza authored and PG-Momik committed Jan 11, 2023
1 parent 1080f32 commit 18b5eb6
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 1 deletion.
14 changes: 14 additions & 0 deletions public/js/app.js

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
{
<<<<<<< HEAD
<<<<<<< HEAD
"/js/app.js": "/js/app.js?id=7e9a87f17fbf18760401c5bab224f685",
=======
=======
>>>>>>> 16be04c6 (added localization to window)
<<<<<<< HEAD
"/js/app.js": "/js/app.js?id=bd91445427c42c330ca26e3bf3844260",
=======
"/js/app.js": "/js/app.js?id=51a0f0b6dcca721384d97ff5e13bd53b",
>>>>>>> d3adc314 (Localization process started)
<<<<<<< HEAD
>>>>>>> 1c3e09ab (Localization process started)
=======
=======
"/js/app.js": "/js/app.js?id=365bc6ea9f584b885818b7ae315c71a9",
>>>>>>> b0121a12 (added localization to window)
>>>>>>> 16be04c6 (added localization to window)
"/js/script.js": "/js/script.js?id=67f974d705cdb041f9d42e8c11e824d1",
"/js/formbuilder.js": "/js/formbuilder.js?id=23e0052da87288dd57b8df6421880767",
"/manifest.js": "/manifest.js?id=6ec4db78dd752c29bd9956118b1e0467",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ export default defineComponent({
);
};
// const language = global_lang as Translation;
const language = window["global_lang"] as Translation;
return {
activityTitle,
Expand All @@ -277,6 +278,7 @@ export default defineComponent({
isMandatoryIcon,
showSidebar,
istopVisible,
language,
};
},
});
Expand Down
2 changes: 1 addition & 1 deletion resources/views/admin/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

<body class="overflow-x-hidden">
<script>
let global_lang = {
window.global_lang = {
'validation_lang': {!! json_encode(trans('validation'), JSON_THROW_ON_ERROR) !!},
};
</script>
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"include": ["resources/assets/js/**/*"],
"exclude": ["node_modules"]


// "exclude": [
// "resources/assets/js/scripts/*"
// ]
Expand Down

0 comments on commit 18b5eb6

Please sign in to comment.