Skip to content

Commit

Permalink
Document how TranslateFunc behavior if no translation #27
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksnyder committed Aug 22, 2015
1 parent 4c0169c commit 5845346
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions i18n/i18n.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ import (

// TranslateFunc returns the translation of the string identified by translationID.
//
// If there is no translation for translationID, then the translationID itself is returned.
// This makes it easy to identify missing translations in your app.
//
// If translationID is a non-plural form, then the first variadic argument may be a map[string]interface{}
// or struct that contains template data.
//
Expand Down

0 comments on commit 5845346

Please sign in to comment.