bin/localization_schema_title.js
/*This method will renter through every files and
add meta:titleId and meta:descriptionId to all the files 
in the schema,components and extensions folder*/
This method will renter through every files and
add meta:titleId and meta:descriptionId to all the files
in the schema,components and extensions folder
This method will renter through every files and add meta : titleId and meta : descriptionId to all the files in the schema components and extensions folder
function addmetaTitleAndDecription(files){
    var localObj = new Object();
    files.forEach(function (file) {
        var originalSchema = JSON.parse(fs.readFileSync(file).toString());
        var id = originalSchema["$id"];
        var schemaname = id.substr(id.lastIndexOf('/') + 1);
        addMetaId(originalSchema,"title",null,schemaname);
        addMetaId(originalSchema,"description",null,schemaname);
        fs.writeFileSync(file, JSON.stringify(originalSchema,null, 2), 'utf8');
	createLocalizationFileAttributes(originalSchema, localObj)
    });
    fs.writeFileSync('../__localization__/en-US.json', JSON.stringify(localObj,null, 2), 'utf8');
}
function addmetaTitleAndDecription ( files ) { var localObj = new Object ( ) ; files . forEach ( function ( file ) { var originalSchema = JSON . parse ( fs . readFileSync ( file ) . toString ( ) ) ; var id = originalSchema [ "$id" ] ; var schemaname = id . substr ( id . lastIndexOf ( '/' ) + 1 ) ; addMetaId ( originalSchema , "title" , null , schemaname ) ; addMetaId ( originalSchema , "description" , null , schemaname ) ; fs . writeFileSync ( file , JSON . stringify ( originalSchema , null , 2 ) , 'utf8' ) ; createLocalizationFileAttributes ( originalSchema , localObj ) } ) ; fs . writeFileSync ( '../__localization__/en-US.json' , JSON . stringify ( localObj , null , 2 ) , 'utf8' ) ; }
This method will renter through every files and
add meta:titleId and meta:descriptionId to all the files
in the schema,components and extensions folder
This method will renter through every files and add meta : titleId and meta : descriptionId to all the files in the schema components and extensions folder