function translateElement(element, options, id, simple){
        if (!id || !options[id])
            return;
        var id_i18next = id+'i18next';

        //Save {da,en} until next update and use sentence for now
        if ( isObject(options[id]) )
            options[id_i18next] = $.extend(true, {}, options[id]);

        options[id] = options[id_i18next] ? translate(options[id_i18next]) : options[id];

        if (element && options[id_i18next]){
            if (simple){
                $(element).text( translate(options[id_i18next]) );
            }
            else
                $(element).i18n( options[id_i18next] );
        }
    }
/*
    translateElement(element, options, id)
    Add i18next to element if it exists else save
    translation and set to current language
    */
translateElement(element, options, id)
Add i18next to element if it exists else save
translation and set to current language
translateElement ( element options id ) Add i18next to element if it exists else save translation and set to current language
function translateElement(element, options, id, simple){
        if (!id || !options[id])
            return;
        var id_i18next = id+'i18next';
        if ( isObject(options[id]) )
            options[id_i18next] = $.extend(true, {}, options[id]);
        options[id] = options[id_i18next] ? translate(options[id_i18next]) : options[id];
        if (element && options[id_i18next]){
            if (simple){
                $(element).text( translate(options[id_i18next]) );
            }
            else
                $(element).i18n( options[id_i18next] );
        }
    }
function translateElement ( element , options , id , simple ) { if ( ! id || ! options [ id ] ) return ; var id_i18next = id + 'i18next' ; if ( isObject ( options [ id ] ) ) options [ id_i18next ] = $ . extend ( true , { } , options [ id ] ) ; options [ id ] = options [ id_i18next ] ? translate ( options [ id_i18next ] ) : options [ id ] ; if ( element && options [ id_i18next ] ) { if ( simple ) { $ ( element ) . text ( translate ( options [ id_i18next ] ) ) ; } else $ ( element ) . i18n ( options [ id_i18next ] ) ; } }
translateElement(element, options, id)
Add i18next to element if it exists else save
translation and set to current language
translateElement ( element options id ) Add i18next to element if it exists else save translation and set to current language
//Save {da,en} until next update and use sentence for now