Wordreference-Controller 1.0.5

Wordreference-Controller 1.0.5

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.



  • By
  • Pedro Pinyera

Wordreference controller is a Objective-C helper to fetch translation of a given word and languages

Install

It's easy to install using cocoapods

  • Edit podfile and add pod 'Wordreference-Controller'
  • Execute pod install

Instructions

To fetch translation from a given word just call the following method passing blocks, word and languages:

[[WMSearchController sharedSearch] searchWord:@"dog" withBlock:^(NSArray *result, NSError *__autoreleasing *error) {
        if(!error){
            NSLog(@"Translated");
        }
    } withLanguage1:@"es" withLanguage2:@"en"];

Available languages

The available languages ( it depends on Wordreference ) are: Language Abbreviation Arabic ar Chinese zh Czech cz English en French fr Greek gr Italian it Japanese ja Korean ko Polish pl Portuguese pt Romanian ro Spanish es Turkish tr

Result

The result is an array where each element is an NSDictionary with the translation. They translation keys are the following:

OriginalTerm
TranslationTerm
type
src_lang
dst_lang
``