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 12, 2023
1 parent a8afab6 commit 9f95dce
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions public/js/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"/js/app.js": "/js/app.js?id=e55b8951f92182820e66e07eb66619dc",
"/js/app.js": "/js/app.js?id=c63a598f613d1bf315e1648242d6c46b",
"/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 9f95dce

Please sign in to comment.