diff --git a/js/src/App.vue b/js/src/App.vue index cafe7ffe1..521346415 100644 --- a/js/src/App.vue +++ b/js/src/App.vue @@ -9,7 +9,7 @@ type="is-danger" :title="$t('Warning').toLocaleUpperCase()" closable - aria-close-label="Close" + :aria-close-label="$t('Close')" >

{{ $t("This is a demonstration site to test Mobilizon.") }} diff --git a/js/src/components/Comment/Comment.vue b/js/src/components/Comment/Comment.vue index 28267be3c..d450f99ed 100644 --- a/js/src/components/Comment/Comment.vue +++ b/js/src/components/Comment/Comment.vue @@ -299,6 +299,10 @@ export default class Comment extends Vue { onConfirm: this.reportComment, outsideDomain: this.comment.actor.domain, }, + // https://github.com/buefy/buefy/pull/3589 + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + closeButtonAriaLabel: this.$t("Close"), }); } diff --git a/js/src/components/Comment/CommentTree.vue b/js/src/components/Comment/CommentTree.vue index 5e93a05e2..402e0008e 100644 --- a/js/src/components/Comment/CommentTree.vue +++ b/js/src/components/Comment/CommentTree.vue @@ -45,8 +45,8 @@ type="is-primary" class="comment-button-submit" icon-left="send" - :aria-label="$t('Post a comment')" - /> + >{{ $t("Send") }} @@ -63,7 +63,7 @@ @@ -77,9 +77,9 @@ @delete-comment="deleteComment" /> -

+ {{ $t("No comments yet") }} -
+ @@ -99,6 +99,7 @@ import { CURRENT_ACTOR_CLIENT } from "../../graphql/actor"; import { IPerson } from "../../types/actor"; import { IEvent } from "../../types/event.model"; import { ApolloCache, FetchResult, InMemoryCache } from "@apollo/client/core"; +import EmptyContent from "@/components/Utils/EmptyContent.vue"; @Component({ apollo: { @@ -119,6 +120,7 @@ import { ApolloCache, FetchResult, InMemoryCache } from "@apollo/client/core"; components: { Comment, IdentityPickerWrapper, + EmptyContent, editor: () => import(/* webpackChunkName: "editor" */ "@/components/Editor.vue"), }, @@ -364,21 +366,34 @@ export default class CommentTree extends Vue {