Latest | 1.0.5 |
---|---|
Homepage | https://github.com/pepibumur/Wordreference-Controller |
License | MIT |
Platforms | ios 6.0, requires ARC |
Dependencies | AFNetworking |
Authors |
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
``
Latest podspec
{ "name": "Wordreference-Controller", "license": "MIT", "version": "1.0.5", "summary": "A helper controller to fetch translations for a given languages ).", "authors": { "Pedro Pinyera": "[email protected]" }, "homepage": "https://github.com/pepibumur/Wordreference-Controller", "source": { "git": "https://github.com/pepibumur/Wordreference-Controller.git", "tag": "1.0.5" }, "platforms": { "ios": "6.0" }, "source_files": "*.{h,m}", "requires_arc": true, "dependencies": { "AFNetworking": [] } }
Sat, 27 Feb 2016 20:45:03 +0000