TranslationsLoader
Class that gets dictionary of translations and turn it into LoadedTranslation
s.
-
Converts dictionary into array of
LoadedTranslation
s.Declaration
Swift
class func loadTranslations(json: Dictionary<String, AnyObject>) -> [LoadedTranslation]
Return Value
Array of
LoadedTranslation
objects from specified file. -
Analyzes passed dictionary and checks its content to match it to some translation type.
Declaration
Swift
private class func detectElementType(element: JSONDictionary) -> LoadedTranslationType?
Return Value
translation type of a dictionary.