Detecting language please wait for.......
In Trados Studio, I can open the TM file, and import an SDLXLIFF file into the TM.
How do I achieve this in C# using Trados Studio API?
You can find a code sample here, on how you can import a xliff into a tm.
The only type of XLIFF file that you can import into a TM is an SDLXLIFF file.