Ajax html document I18n
===

I am using that code :

    $.get(
        'filename.html',
        function(content)
        {
            $('#container').empty().append(content);
        }
    );

to load some external files and place the content into the current working page. The external files that I load are in plain HTML and I like to ask, if there is any good way to internationalize that loaded pages.

In my current page I have the opportunity to create a javascript object with all translation keys like:

    var i18n = {
        'doc1' : {
            'title' : 'This is a title'
        }
    };

In example the external files looks like that

    <h3>This is a title</h3>
    .....

Is there a way to change that to something similar to

    <h3>{doc1.title}</h3>
    .....

and then after the load to replace the doc1.title;