Skip to content

Translatable golang templates according to i18next specification

License

Notifications You must be signed in to change notification settings

nimbusec-oss/go-i18n

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go-I18N

MIT License Go Doc

Overview

Go-i18n is a internationalization library for golang using the i18next json format.

Features

  • named intermediates

Installation

To install this package, run:

go get github.com/nimbusec-oss/go-i18n

Documentation

Load translations

t, err := i18n.NewTranslations("<dir>", "en").Load()

Add to FuncMap

template.FuncMap{"T":t.GenerateDefaultTranslate(),}

Use in template

{{ T "<translationKey>" }}

About

Translatable golang templates according to i18next specification

Resources

License

Stars

Watchers

Forks

Packages

No packages published