1.0.7 • Published 2 years ago

tureng-translator v1.0.7

Weekly downloads
6
License
MIT
Repository
github
Last release
2 years ago

Tureng Translator

This package allows you to get multiple meanings of a word asynchronously between;

  • Turkish to English
  • English to Turkish
  • French to English
  • Spanish to English
  • German to English

Example 

 const config: Config = {
   amount: 1,   
   //you can specify how many word meanings you want
   detailed: false; 
   //allows you get all meanings of a word or just the first table on tureng.com
   //detailed property is set false default
 }
 //  config 
translate("aircraft", TranslationType.ENGTUR, config).then((resp: WordBlock[])=>{
   // resp => 
    /*[{
     description: 'Meanings of "aircraft" in Turkish English Dictionary : 42 result(s)',
     words: [ [Word] ]
   }]
  
    also word has these properties;
  
    {
        category: 'Common Usage',
        type: 'n. ',
        translatedFrom: 'en',
        text: 'aircraft',
        order: 1,
        translatedTo: 'tr',
        translatedText: 'uçak'
    } 
  */
});
1.0.7

2 years ago

1.0.5

2 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago