Class YRTI18nManagerFactory

Class Methods

+ getI18nManagerInstance

Gets the internationalization manager interface.

+ getLocaleWithLocaleDelegate:

Returns the locale currently used by the runtime.

+ resetLocaleWithLocaleResetDelegate:

Resets locale settings to system defaults.

+ setLocaleWithLanguage:country:localeUpdateDelegate:

Sets the runtime locale.

+ setLocaleWithLanguage:localeUpdateDelegate:

Sets a custom library language.

Method Detail

+getI18nManagerInstance

+ (nonnull YRTI18nManager *)getI18nManagerInstance

Gets the internationalization manager interface.

+getLocaleWithLocaleDelegate:

+ (void)getLocaleWithLocaleDelegate:(nonnull YRTLocaleDelegate)localeDelegate 

Returns the locale currently used by the runtime.

+resetLocaleWithLocaleResetDelegate:

+ (void)resetLocaleWithLocaleResetDelegate:(nonnull YRTLocaleResetDelegate)localeResetDelegate 

Resets locale settings to system defaults.

+setLocaleWithLanguage:country:localeUpdateDelegate:

+ (void)setLocaleWithLanguage:(nonnull NSString *)language
                      country:(nonnull NSString *)country
         localeUpdateDelegate:(nonnull YRTLocaleUpdateDelegate)localeUpdateDelegate 

Sets the runtime locale.

The user needs to restart the application for the changes to take effect.

+setLocaleWithLanguage:localeUpdateDelegate:

+ (void)setLocaleWithLanguage:(nonnull NSString *)language
         localeUpdateDelegate:(nonnull YRTLocaleUpdateDelegate)localeUpdateDelegate 

Sets a custom library language.

Country settings are determined by system preferences. The user needs to restart the application for the changes to take effect.