mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Update gitea.com/macaron/i18n (#12806)
Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
		
							
								
								
									
										9
									
								
								vendor/github.com/unknwon/i18n/README.md
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								vendor/github.com/unknwon/i18n/README.md
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -1,4 +1,9 @@
 | 
			
		||||
# i18n [](https://godoc.org/github.com/unknwon/i18n)
 | 
			
		||||
# i18n
 | 
			
		||||
 | 
			
		||||
[](https://github.com/unknwon/i18n/actions?query=workflow%3AGo)
 | 
			
		||||
[](https://codecov.io/gh/unknwon/i18n)
 | 
			
		||||
[](https://pkg.go.dev/github.com/unknwon/i18n?tab=doc)
 | 
			
		||||
[](https://sourcegraph.com/github.com/unknwon/i18n)
 | 
			
		||||
 | 
			
		||||
Package i18n is for app Internationalization and Localization.
 | 
			
		||||
 | 
			
		||||
@@ -124,7 +129,7 @@ Module i18n provides a command line helper tool beei18n for simplify steps of yo
 | 
			
		||||
 | 
			
		||||
Command `sync` allows you use a exist local file as the template to create or sync other locale files:
 | 
			
		||||
 | 
			
		||||
	ui18n sync srouce_file.ini other1.ini other2.ini
 | 
			
		||||
	ui18n sync source_file.ini other1.ini other2.ini
 | 
			
		||||
 | 
			
		||||
This command can operate 1 or more files in one command.
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										9
									
								
								vendor/github.com/unknwon/i18n/codecov.yml
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								vendor/github.com/unknwon/i18n/codecov.yml
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
coverage:
 | 
			
		||||
  range: "60...95"
 | 
			
		||||
  status:
 | 
			
		||||
    project:
 | 
			
		||||
      default:
 | 
			
		||||
        threshold: 1%
 | 
			
		||||
 | 
			
		||||
comment:
 | 
			
		||||
  layout: 'diff, files'
 | 
			
		||||
							
								
								
									
										2
									
								
								vendor/github.com/unknwon/i18n/i18n.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/github.com/unknwon/i18n/i18n.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -167,7 +167,7 @@ func SetMessageWithDesc(lang, langDesc string, localeFile interface{}, otherLoca
 | 
			
		||||
		lc.langDesc = langDesc
 | 
			
		||||
		lc.message = message
 | 
			
		||||
 | 
			
		||||
		if locales.Add(lc) == false {
 | 
			
		||||
		if !locales.Add(lc) {
 | 
			
		||||
			return ErrLangAlreadyExist
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user