Skip to content

Commit

Permalink
fixup! fixup! fixup! Add i18n support
Browse files Browse the repository at this point in the history
  • Loading branch information
martijngastkemper committed Mar 8, 2024
1 parent a995521 commit bc71197
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/js/tool.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions resources/js/components/Tool.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</p>

<p v-if="lastRun && lastRun.status !== 'completed'">
{{ __("running_message", { last_run: formateDate(lastRun.created_at) }) }}
{{ __("running_message", { last_run: formatDate(lastRun.created_at) }) }}
</p>
</template>

Expand Down Expand Up @@ -62,7 +62,6 @@ export default {
Nova.request()
.get("/nova-vendor/publish/last-publish-run")
.then((lastRun) => {
console.log(lastRun.data);
this.lastRun = lastRun.data;
this.publishing = lastRun.data.status !== "completed";
this.error = "";
Expand All @@ -77,7 +76,7 @@ export default {
}, 10000);
},
formatDate(date) {
return new Intl.DateTimeFormat("nl-NL", {
return new Intl.DateTimeFormat(Nova.config("locale"), {
dateStyle: "full",
timeStyle: "long",
}).format(new Date(date));
Expand Down

0 comments on commit bc71197

Please sign in to comment.