Move to smartling for translation services
This commit is contained in:
		
					parent
					
						
							
								620067342a
							
						
					
				
			
			
				commit
				
					
						5957c111cf
					
				
			
		
					 73 changed files with 1394 additions and 64465 deletions
				
			
		
							
								
								
									
										29
									
								
								ts/scripts/push-strings.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								ts/scripts/push-strings.ts
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,29 @@
 | 
			
		|||
// Copyright 2021 Signal Messenger, LLC
 | 
			
		||||
// SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		||||
 | 
			
		||||
import { execSync } from 'child_process';
 | 
			
		||||
 | 
			
		||||
const { SMARTLING_USER, SMARTLING_SECRET } = process.env;
 | 
			
		||||
 | 
			
		||||
if (!SMARTLING_USER) {
 | 
			
		||||
  console.error('Need to set SMARTLING_USER environment variable!');
 | 
			
		||||
  process.exit(1);
 | 
			
		||||
}
 | 
			
		||||
if (!SMARTLING_SECRET) {
 | 
			
		||||
  console.error('Need to set SMARTLING_SECRET environment variable!');
 | 
			
		||||
  process.exit(1);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
console.log('Pushing latest strings!');
 | 
			
		||||
console.log();
 | 
			
		||||
execSync(
 | 
			
		||||
  'smartling-cli' +
 | 
			
		||||
    ` --user "${SMARTLING_USER}"` +
 | 
			
		||||
    ` --secret "${SMARTLING_SECRET}"` +
 | 
			
		||||
    ' --config .smartling.yml' +
 | 
			
		||||
    ' --verbose' +
 | 
			
		||||
    ' files push _locales/en/messages.json',
 | 
			
		||||
  {
 | 
			
		||||
    stdio: [null, process.stdout, process.stderr],
 | 
			
		||||
  }
 | 
			
		||||
);
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue