Hey all, So I wanted to test out Apertium's Javascript API in one of the web pages in a Rails app I am working on, but none of the methods seem to be working in the sense they are all returning *null *or *false *outputs while the corresponding function calls should not.
For example, apertium.isTranslatable("en","es"); gives me false. And, more
importantly, apertium.translateLanguage("hello","en","es",function(result){
console.log(result.translation)}); gives me null.
No matter what the text, this keeps returning null.
Attaching my index.html.erb along. It'd be great help if anyone could guide
me with this.
Regards,
Aayush
index.html.erb
Description: Binary data
------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________ Apertium-stuff mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/apertium-stuff
