# Setting English Variant

Canonical page: https://www.adaptabletools.com/docs/ui-tutorial-american-english

- It is possible to use American English in AdapTable (in preference to default British English)
- Set **`userInterfaceOptions.englishVariant`** to `'US'` for American spelling in labels and wizard text (e.g. **Color** instead of **Colour**)

## Topics on this Page

| Topic                                      | Summary                     |
| ------------------------------------------ | --------------------------- |
| [englishVariant](#setting-english-variant) | `GB` vs `US`                |
| [Demo](#setting-english-variant)           | Format Column wizard labels |

[UI Guides](https://www.adaptabletools.com/docs/ui-tutorial-overview/index.md).

By default AdapTable is written in **British English**.

However for the many American users of AdapTable, there is an option to replace this with US English.

## Setting English Variant

This is done via the `englishVariant` property on [User Interface Options](https://www.adaptabletools.com/docs/technical-reference-ui/index.md).

### `englishVariant`

Which variant of English to use in AdapTable labels

By default AdapTable uses British English in its UI - label, help blocks etc.

When building an application that primarily serves the US market, set this property to 'US' to see 'color', 'behavior' etc.

This only covers British and American English and is not **not** full localisation (or should that be localization?)

```ts {4}
// Set AdapTable to use American spelling in the UI
const adaptableOptions: AdaptableOptions = {
  userInterfaceOptions: {
    englishVariant: 'US',
  },
};
```

**Example: Using US English**

Setting English Variant to US (in place of default GB)

- This demo uses US English (by setting `englishVariant` in [User Interface Options](https://www.adaptabletools.com/docs/technical-reference-ui/index.md) to "US")

- Create a new Format Column and note that in Style section of Wizard it says "Fore Color", "Back Color" etc

Demo project (Vanilla); the files without a marker are shown below:

```text
src/
  adaptableOptions.ts
  agGridModules.ts     [template]
  columnDefs.ts        [template]
  gridOptions.ts       [template]
  index.ts             [template]
  onAdaptableReady.ts  [template]
  rowData.ts           [template]
  styles.css           [template]
index.html             [template]
package.json           [template]
tsconfig.json          [template]
```

Files marked `[template]` are the same in every demo; see the [demo template](https://www.adaptabletools.com/llms/demo-template.md#vanilla).

**`src/adaptableOptions.ts`**

```ts
import {AdaptableOptions} from '@adaptabletools/adaptable';
import {WebFramework} from './rowData';

export const adaptableOptions: AdaptableOptions<WebFramework> = {
  primaryKey: 'id',
  adaptableId: 'Using US Engish',
  userInterfaceOptions: {
    englishVariant: 'US',
  },
  initialState: {
    Theme: {CurrentTheme: 'dark'},
    Dashboard: {
      ModuleButtons: ['FormatColumn'],
    },
    Layout: {
      CurrentLayout: 'Standard Layout',
      Layouts: [
        {
          TableColumns: [
            'name',
            'language',
            'github_stars',
            'topics',
            'license',
            'created_at',
            'has_wiki',
            'updated_at',
            'pushed_at',
            'github_watchers',
            'description',
            'open_issues_count',
            'closed_issues_count',
            'open_pr_count',
            'closed_pr_count',
            'has_projects',
            'has_pages',
            'week_issue_change',
          ],
          Name: 'Standard Layout',
          AutoSizeColumns: true,
        },
      ],
    },
  },
};
```
