mirror of
				https://github.com/zen-browser/desktop.git
				synced 2025-10-26 12:27:50 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			563 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			563 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| browser_locales=engine/browser/locales
 | |
| 
 | |
| copy_browser_locales() {
 | |
|   langId=$1
 | |
|   mkdir -p $browser_locales/$langId
 | |
|   if [ "$langId" = "en-US" ]; then
 | |
|     find $browser_locales/$langId -type f -name "zen*" -delete
 | |
|     rsync -av --exclude=.git ./l10n/en-US/browser/ $browser_locales/$langId/
 | |
|     return
 | |
|   fi
 | |
|   rm -rf $browser_locales/$langId/
 | |
|   # TODO: Copy the rest of the l10n directories to their respective locations
 | |
|   rsync -av --exclude=.git ./l10n/$langId/ $browser_locales/$langId/
 | |
| }
 | |
| 
 | |
| LANG=$1
 | |
| echo "Copying language pack for $LANG"
 | |
| copy_browser_locales $LANG
 | 
