Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 415 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 415 Bytes

Translator

You can use go template for gender need:

surroundedByFriends:
    hash: sha1-eb6b8ad3d8b687bad425c01c011eddaae00b86f9
    other: '{{if eq .Gender "female"}}entouré d''amie{{else if eq .Gender "male"}}entouré d''ami{{else}}entouré d''ami.e{{end}}'
svc.Translate(ctx, messageID, map[string]string{"Gender": "neutral"})

you can check translation_test.go for more use cases