TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Unclaimed.
Wordreference controller is a Objective-C helper to fetch translation of a given word and languages
It's easy to install using cocoapods
pod 'Wordreference-Controller'
pod install
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"];
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
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
``