mirror of
https://github.com/Macrame-App/Macrame
synced 2025-12-29 15:29:26 +00:00
Backend update.
This commit is contained in:
parent
f49630558d
commit
90bf6be882
9 changed files with 66 additions and 28 deletions
|
|
@ -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] == "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue