/**
 * Appcelerator Titanium Mobile
 * Copyright (c) 2009-2016 by Appcelerator, Inc. All Rights Reserved.
 * Licensed under the terms of the Apache Public License
 * Please see the LICENSE included with this distribution for details.
 * 
 * WARNING: This is generated code. Modify at your own risk and without support.
 */


/**
 The class represents locale.
 */
@interface TiLocale : NSObject {
	NSString *currentLocale;
	NSBundle *bundle;
}

/**
 Returns the current locate.
 @see currentLocale
 */
@property(nonatomic,readwrite,retain) NSString *currentLocale;

/**
 Returns the bundle associated with the locale.
 
 Read-only property.
 */
@property(nonatomic,readwrite,retain) NSBundle *bundle;

/**
 Returns default locale.
 */
+(NSString*)defaultLocale;

/**
 Sets current locale.
 @param locale The locale to set.
 */
+(void)setLocale:(NSString*)locale;

/**
 Return localized text for the key.
 @param key The text key.
 @param defaultValue The default value.
 */
+(NSString*)getString:(NSString*)key comment:(NSString*)defaultValue;

@end
