diff --git a/client/src/components/chat.vue b/client/src/components/chat.vue
index 83abf8c..e47a251 100644
--- a/client/src/components/chat.vue
+++ b/client/src/components/chat.vue
@@ -24,7 +24,7 @@
boundariesElement: 'body',
}"
>
- {{ $t('you') }}
+ {{ $t('you') }}
{{ member(message.id).displayname }}
{{ message.content }}
diff --git a/client/src/neko/index.ts b/client/src/neko/index.ts
index d5058a6..ad9dc49 100644
--- a/client/src/neko/index.ts
+++ b/client/src/neko/index.ts
@@ -188,7 +188,9 @@ export class NekoClient extends BaseClient implements EventEmitter {
this.$vue.$notify({
group: 'neko',
type: 'info',
- title: this.$vue.$t('notifications.controls_taken', { name: this.$vue.$t('you') }) as string,
+ title: this.$vue.$t('notifications.controls_taken', {
+ name: member.id == this.id && this.$vue.$te('you') ? this.$vue.$t('you') : member.displayname,
+ }) as string,
duration: 5000,
speed: 1000,
})
@@ -213,7 +215,9 @@ export class NekoClient extends BaseClient implements EventEmitter {
this.$vue.$notify({
group: 'neko',
type: 'info',
- title: this.$vue.$t('notifications.controls_released', { name: this.$vue.$t('you') }) as string,
+ title: this.$vue.$t('notifications.controls_released', {
+ name: member.id == this.id && this.$vue.$te('you') ? this.$vue.$t('you') : member.displayname,
+ }) as string,
duration: 5000,
speed: 1000,
})
@@ -270,7 +274,7 @@ export class NekoClient extends BaseClient implements EventEmitter {
this.$accessor.chat.newMessage({
id,
content: this.$vue.$t('notifications.controls_given', {
- name: member.id == this.id ? this.$vue.$t('you') : member.displayname,
+ name: member.id == this.id && this.$vue.$te('you') ? this.$vue.$t('you') : member.displayname,
}) as string,
type: 'event',
created: new Date(),
@@ -361,7 +365,7 @@ export class NekoClient extends BaseClient implements EventEmitter {
this.$accessor.chat.newMessage({
id,
content: this.$vue.$t('notifications.banned', {
- name: member.id == this.id ? this.$vue.$t('you') : member.displayname,
+ name: member.id == this.id && this.$vue.$te('you') ? this.$vue.$t('you') : member.displayname,
}) as string,
type: 'event',
created: new Date(),
@@ -381,7 +385,7 @@ export class NekoClient extends BaseClient implements EventEmitter {
this.$accessor.chat.newMessage({
id,
content: this.$vue.$t('notifications.kicked', {
- name: member.id == this.id ? this.$vue.$t('you') : member.displayname,
+ name: member.id == this.id && this.$vue.$te('you') ? this.$vue.$t('you') : member.displayname,
}) as string,
type: 'event',
created: new Date(),
@@ -403,7 +407,7 @@ export class NekoClient extends BaseClient implements EventEmitter {
this.$accessor.chat.newMessage({
id,
content: this.$vue.$t('notifications.muted', {
- name: member.id == this.id ? this.$vue.$t('you') : member.displayname,
+ name: member.id == this.id && this.$vue.$te('you') ? this.$vue.$t('you') : member.displayname,
}) as string,
type: 'event',
created: new Date(),
@@ -425,7 +429,7 @@ export class NekoClient extends BaseClient implements EventEmitter {
this.$accessor.chat.newMessage({
id,
content: this.$vue.$t('notifications.unmuted', {
- name: member.id == this.id ? this.$vue.$t('you') : member.displayname,
+ name: member.id == this.id && this.$vue.$te('you') ? this.$vue.$t('you') : member.displayname,
}) as string,
type: 'event',
created: new Date(),
@@ -474,7 +478,7 @@ export class NekoClient extends BaseClient implements EventEmitter {
this.$accessor.chat.newMessage({
id,
content: this.$vue.$t('notifications.controls_taken_steal', {
- name: member.id == this.id ? this.$vue.$t('you') : member.displayname,
+ name: member.id == this.id && this.$vue.$te('you') ? this.$vue.$t('you') : member.displayname,
}) as string,
type: 'event',
created: new Date(),
@@ -501,7 +505,7 @@ export class NekoClient extends BaseClient implements EventEmitter {
this.$accessor.chat.newMessage({
id,
content: this.$vue.$t('notifications.controls_released_steal', {
- name: member.id == this.id ? this.$vue.$t('you') : member.displayname,
+ name: member.id == this.id && this.$vue.$te('you') ? this.$vue.$t('you') : member.displayname,
}) as string,
type: 'event',
created: new Date(),
@@ -524,7 +528,7 @@ export class NekoClient extends BaseClient implements EventEmitter {
this.$accessor.chat.newMessage({
id,
content: this.$vue.$t('notifications.controls_given', {
- name: member.id == this.id ? this.$vue.$t('you') : member.displayname,
+ name: member.id == this.id && this.$vue.$te('you') ? this.$vue.$t('you') : member.displayname,
}) as string,
type: 'event',
created: new Date(),