Skip to content

Commit

Permalink
Merge pull request #185 from ftoledo/spanish_translation
Browse files Browse the repository at this point in the history
add spanish translation (es-AR)
  • Loading branch information
vit1251 authored Mar 4, 2024
2 parents 16a6d1e + 3e7e469 commit a35f291
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions internal/i18n/Spanish.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
package i18n

func init() {

mainTranslation := GetMainTranslation()

spanishTranslation := mainTranslation.GetLangTranslation("es-AR")

/* Main menu */
actionTranslation := spanishTranslation.GetActionTranslation("Action")
actionTranslation.SetTranslation("menu-home", "Inicio")
actionTranslation.SetTranslation("menu-netmail", "Netmail")
actionTranslation.SetTranslation("menu-echomail", "Echomail")
actionTranslation.SetTranslation("menu-files", "Archivos")
actionTranslation.SetTranslation("menu-service", "Servicios")
actionTranslation.SetTranslation("menu-people", "Personas")
actionTranslation.SetTranslation("menu-draft", "Borradores")
actionTranslation.SetTranslation("menu-setup", "Configuración")

/* NetmailIndexAction */
netmailIndexActionTranslation := spanishTranslation.GetActionTranslation("NetmailIndexAction")
netmailIndexActionTranslation.SetTranslation("action-button-create", "Redactar")
/* EchoAreaIndexAction */
echoAreaIndexActionTranslation := spanishTranslation.GetActionTranslation("EchoAreaIndexAction")
echoAreaIndexActionTranslation.SetTranslation("action-button-create", "Crear")
/* EchoMsgIndexAction */
echoMsgIndexActionTranslation := spanishTranslation.GetActionTranslation("EchoMsgIndexAction")
echoMsgIndexActionTranslation.SetTranslation("action-compose-button", "Redactar")
echoMsgIndexActionTranslation.SetTranslation("action-tree-button", "Árbol")
echoMsgIndexActionTranslation.SetTranslation("action-mark-as-read-button", "Marcar como leído")
echoMsgIndexActionTranslation.SetTranslation("action-settings-button", "Opciones")
/* FileEchoIndexAction */
fileEchoIndexActionTranslation := spanishTranslation.GetActionTranslation("FileEchoIndexAction")
fileEchoIndexActionTranslation.SetTranslation("action-button-create", "Crear")

}

0 comments on commit a35f291

Please sign in to comment.