mirror of
				https://github.com/openstreetmap/id-tagging-schema.git
				synced 2025-11-04 08:43:50 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			770 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			770 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import schemaBuilder from '@ideditor/schema-builder';
 | 
						|
 | 
						|
let translationOptions = {};
 | 
						|
if (process.argv.includes('translations')) {
 | 
						|
  translationOptions = {
 | 
						|
    translOrgId: 'openstreetmap',
 | 
						|
    translProjectId: 'id-editor',
 | 
						|
    translResourceIds: ['presets'],
 | 
						|
    translReviewedOnly: ['vi']
 | 
						|
  };
 | 
						|
}
 | 
						|
 | 
						|
schemaBuilder.buildDist({
 | 
						|
  taginfoProjectInfo: {
 | 
						|
    name: 'iD Tagging Schema',
 | 
						|
    description: 'Presets available in the iD editor, Rapid, StreetComplete, Go Map!!, Every Door, and other applications',
 | 
						|
    project_url: 'https://github.com/openstreetmap/id-tagging-schema/',
 | 
						|
    icon_url: 'https://cdn.jsdelivr.net/gh/openstreetmap/iD@release/dist/img/logo.png',
 | 
						|
    contact_name: 'Martin Raifer',
 | 
						|
    contact_email: 'martin@raifer.tech'
 | 
						|
  },
 | 
						|
  ...translationOptions
 | 
						|
});
 |