Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetTranslator

func SetTranslator(tr *translation.Translator)

    SetTranslator sets translator.

    func Trans

    func Trans(ctx context.Context, key string, opts ...translation.Option) string

      Trans translate message.

      Example (WithLanguage)
      Output:
      
      Привет Москва
      Это стоит 1 000,00.
      

      Types

      This section is empty.

      Source Files