translating *.js files in Trados Studio 2015

I have to translate a .js file (JavaScript file) but there is no file type definition in Trados Studio for translating such files. I downloaded the .sdlplugin files for .json files but when I use the path extraction function to obtain the path rules for the string properties of the file by clicking "Extract..." in the "Parsing Settings" window, the *.js file is not visible.
What can I do to being able to translate .js files in Trados Studio?

Parents
  • Hi Yasmin,

    JavaScript files and Jason files are not the same thing. Your best bet, if you don't use SDL Passolo for this, is to create a regex based filetype to extract the translatable text from the JS file. Depending on the JS file content you may be able to use the HTML filetype by adding *.js to the file dialog wildcard expression and then use the embedded content processor with similar rules to the ones you would have to create with the regex filetype.

    It really depends on the content of the file I think.

    Regards

    Paul

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

Reply
  • Hi Yasmin,

    JavaScript files and Jason files are not the same thing. Your best bet, if you don't use SDL Passolo for this, is to create a regex based filetype to extract the translatable text from the JS file. Depending on the JS file content you may be able to use the HTML filetype by adding *.js to the file dialog wildcard expression and then use the embedded content processor with similar rules to the ones you would have to create with the regex filetype.

    It really depends on the content of the file I think.

    Regards

    Paul

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

Children