Backend update.

This commit is contained in:
Jesse Malotaux 2025-04-28 10:20:13 +02:00
parent f49630558d
commit 90bf6be882
9 changed files with 66 additions and 28 deletions

View file

@ -1,6 +1,8 @@
package helper
import "strings"
import (
"strings"
)
func Translate(code string) string {
translations := map[string]string{
@ -44,6 +46,18 @@ func Translate(code string) string {
"NumpadDivide": "num/",
"NumpadEnter": "num_enter",
"Clear": "num_clear",
"BracketLeft": "[",
"BracketRight": "]",
"Quote": "'",
"Semicolon": ";",
"Backquote": "`",
"Backslash": "\\",
"IntlBackslash": "\\",
"Slash": "/",
"Comma": ",",
"Period": ".",
"Equal": "=",
"Minus": "-",
}
if translations[code] == "" {