code: func GetTranslationFunc(reader LocaleReader) (TranslateFunc, error) {
  	locale, err := determineLocale(reader)
  	if err != nil {
  		locale = defaultLocale
  	}
  
  	rawTranslation, err := loadAssetFromResources(locale)
  	if err != nil {
  		rawTranslation, err = loadAssetFromResources(defaultLocale)
  		if err != nil {
  			return nil, err
  		}
  	}
  
  	return generateTranslationFunc(rawTranslation)
  }
docs: // GetTranslationFunc will return back a function that can be used to translate
  // strings into the currently set locale.