**Inheritance:**
java.lang.Object
```
public final class CurrentThreadSettings
```

Auxiliary class that allows to define default Locale for current thread

**Deprecated:** Please use [LocaleOptions](../../com.aspose.imaging/localeoptions) instead of CurrentThreadSettings.
## Methods

| Method | Description |
| --- | --- |
| [getLocale()](#getLocale--) | Returns default Locale for current thread. |
| [setLocale(String localeName)](#setLocale-java.lang.String-) | Sets default Locale for current thread. |
| [setLocale(Locale locale)](#setLocale-java.util.Locale-) | Sets default Locale for current thread. |
### getLocale() {#getLocale--}
```
public static Locale getLocale()
```


Returns default Locale for current thread.

**Returns:**
java.util.Locale - the default Locale for current thread.
### setLocale(String localeName) {#setLocale-java.lang.String-}
```
public static void setLocale(String localeName)
```


Sets default Locale for current thread.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| localeName | java.lang.String | the default Locale for current thread. |

### setLocale(Locale locale) {#setLocale-java.util.Locale-}
```
public static void setLocale(Locale locale)
```


Sets default Locale for current thread.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| locale | java.util.Locale | the default Locale for current thread. |

