diff --git a/docs/dev/how-to-translate.md b/docs/dev/how-to-translate.md
index 86fd5129..77cbe3f4 100644
--- a/docs/dev/how-to-translate.md
+++ b/docs/dev/how-to-translate.md
@@ -73,10 +73,12 @@ Example:
}
```
-In the code you can use it like this:
+In the code you can translate using `translator.translate`, or the shortcut alias: `_`.
```js
-translator._('messages.coffe-machine.start');
+import { _ } from "../../Translator/Translator";
+
+console.log(_('messages.coffe-machine.start'));
```
### Add a key with parameters
@@ -99,7 +101,7 @@ Example:
In the code you can use it like this:
```js
-translator._('messages.coffe-machine.player-start', {
+_('messages.coffe-machine.player-start', {
playerName: "John"
});
-```
\ No newline at end of file
+```
diff --git a/front/src/Components/AudioManager/AudioManager.svelte b/front/src/Components/AudioManager/AudioManager.svelte
index 5bf02fc9..aab2747e 100644
--- a/front/src/Components/AudioManager/AudioManager.svelte
+++ b/front/src/Components/AudioManager/AudioManager.svelte
@@ -5,7 +5,7 @@
import { get } from "svelte/store";
import type { Unsubscriber } from "svelte/store";
import { onDestroy, onMount } from "svelte";
- import { translator } from "../../Translator/Translator";
+ import { _ } from "../../Translator/Translator";
let HTMLAudioPlayer: HTMLAudioElement;
let audioPlayerVolumeIcon: HTMLElement;
@@ -145,7 +145,7 @@
diff --git a/front/src/Components/Chat/Chat.svelte b/front/src/Components/Chat/Chat.svelte
index 2e60e43e..5f66837b 100644
--- a/front/src/Components/Chat/Chat.svelte
+++ b/front/src/Components/Chat/Chat.svelte
@@ -5,7 +5,7 @@
import ChatElement from "./ChatElement.svelte";
import { afterUpdate, beforeUpdate, onMount } from "svelte";
import { HtmlUtils } from "../../WebRtc/HtmlUtils";
- import { translator } from "../../Translator/Translator";
+ import { _ } from "../../Translator/Translator";
let listDom: HTMLElement;
let chatWindowElement: HTMLElement;
@@ -46,7 +46,7 @@