divec / ll

Two-way parallel translation
GNU Affero General Public License v3.0
3 stars 5 forks source link

You may use WMF Apertium public API #16

Closed santhoshtr closed 5 years ago

santhoshtr commented 5 years ago
diff --git a/demo/demo.ll.js b/demo/demo.ll.js
index e56a9d9..6c9c0b8 100644
--- a/demo/demo.ll.js
+++ b/demo/demo.ll.js
@@ -10,7 +10,7 @@
                $secondDemo = $( '.ve-demo-editor' ).eq( 1 ),
                $firstInstance = $( '.ve-instance' ).eq( 0 ),
                $secondInstance = $( '.ve-instance' ).eq( 1 ),
-               translator = new ll.ApertiumTranslator( 'http://localhost:2737' );
+               translator = new ll.ApertiumTranslator( 'http://apertium.wmflabs.org' );

        new ve.init.sa.Platform( ve.messagePaths ).getInitializedPromise()
                .fail( function () {

Simplifies the setup!

divec commented 5 years ago

Thanks! That's now included in the example config in https://github.com/divec/ll/commit/cfe7cc055712602d08530d79fa869cdb3e9a7910#diff-2c315b5e0783841ed9f73eaccb51bc46 .