mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 13:28:25 +00:00 
			
		
		
		
	Use i18n.Reset to reload locales (#15073)
This commit is contained in:
		
							
								
								
									
										5
									
								
								vendor/github.com/unknwon/i18n/i18n.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								vendor/github.com/unknwon/i18n/i18n.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -174,6 +174,11 @@ func SetMessageWithDesc(lang, langDesc string, localeFile interface{}, otherLoca
 | 
			
		||||
	return err
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Reset resets locale store.
 | 
			
		||||
func Reset() {
 | 
			
		||||
	locales = &localeStore{store: make(map[string]*locale)}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// SetMessage sets the message file for localization.
 | 
			
		||||
func SetMessage(lang string, localeFile interface{}, otherLocaleFiles ...interface{}) error {
 | 
			
		||||
	return SetMessageWithDesc(lang, lang, localeFile, otherLocaleFiles...)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user