Inherits from NSObject
Conforms to ESStringLocalizer
Declared in ESDictionaryLocalizer.h
ESDictionaryLocalizer.m

Overview

This class implements the ESStringLocalizer protocol by searching the value in the given dictionary.

Instance Methods

init

Initializer not supported. Throws an exception when invoked.

- (id)init

Return Value

nil. It should not return unless assertions are disabled.

Declared In

ESDictionaryLocalizer.h

initWithDictionary:

A designated initializer.

- (id)initWithDictionary:(NSDictionary *)rawLocalization_

Parameters

rawLocalization_

A dictionary for mock localized strings lookup.

Return Value

The localizer object.

Declared In

ESDictionaryLocalizer.h

localizedStringForKey:

Finds the localized value for the given key in the dictionary specified in [ESDictionaryLocalizer initWithDictionary:]

- (NSString *)localizedStringForKey:(NSString *)key_

Parameters

key_

A localization key string.

Return Value

rawLocalization[key]

Declared In

ESDictionaryLocalizer.h