i18n/js_to_json.js
function (str) {
    str = str.split('Blockly.Msg.')[1].split(' ');
    return {
        key: str[0],
        value: str
            .splice(2, str.length)
            .join(' ')
            .slice(1, -2) // strip off initial ', and ending ';
            .replace(/\\'/g, "'")
    };
}
function (str) {
    str = str.split('Blockly.Msg.')[1].split(' ');
    return {
        key: str[0],
        value: str
            .splice(2, str.length)
            .join(' ')
            .slice(1, -2) // strip off initial ', and ending ';
            .replace(/\\'/g, "'")
    };
}
function ( str ) { str = str . split ( 'Blockly.Msg.' ) [ 1 ] . split ( ' ' ) ; return { key : str [ 0 ] , value : str . splice ( 2 , str . length ) . join ( ' ' ) . slice ( 1 , - 2 ) // strip off initial ', and ending '; . replace ( / \\' / g , "'" ) } ; }
Extract key and value from message definition
Extract key and value from message definition