bin/localization_schema_title.js
/* This method will find the meta:titleId and meta:descriptionId
in the source files and create en_us.json file with 
meta:titleId/meta:descriptionId as the key and 
value from title/description as value */
This method will find the meta:titleId and meta:descriptionId
in the source files and create en_us.json file with
meta:titleId/meta:descriptionId as the key and
value from title/description as value
This method will find the meta : titleId and meta : descriptionId in the source files and create en_us . json file with meta : titleId / meta : descriptionId as the key and value from title / description as value
function createLocalizationFileAttributes(obj, localObj){
	for(var i in obj) {
         if (typeof obj[i] == 'object') {
            createLocalizationFileAttributes(obj[i], localObj);
        }else if(obj["title"] && i == "meta:titleId"){
            titleVal = obj["title"]
            metaTitleId = obj["meta:titleId"]
            localObj[metaTitleId] = titleVal
	    }else if(obj["description"] && i == "meta:descriptionId"){
            descVal = obj["description"]
            metaDescId = obj["meta:descriptionId"]
	        localObj[metaDescId] = descVal
	    }
    }
}
function createLocalizationFileAttributes ( obj , localObj ) { for ( var i in obj ) { if ( typeof obj [ i ] == 'object' ) { createLocalizationFileAttributes ( obj [ i ] , localObj ) ; } else if ( obj [ "title" ] && i == "meta:titleId" ) { titleVal = obj [ "title" ] metaTitleId = obj [ "meta:titleId" ] localObj [ metaTitleId ] = titleVal } else if ( obj [ "description" ] && i == "meta:descriptionId" ) { descVal = obj [ "description" ] metaDescId = obj [ "meta:descriptionId" ] localObj [ metaDescId ] = descVal } } }
This method will find the meta:titleId and meta:descriptionId
in the source files and create en_us.json file with
meta:titleId/meta:descriptionId as the key and
value from title/description as value
This method will find the meta : titleId and meta : descriptionId in the source files and create en_us . json file with meta : titleId / meta : descriptionId as the key and value from title / description as value