# dictionary.variables

#### `$dictionary: () !default;`

A global dictionary.

```scss
// Global dictionary.
$dictionary: (
  word: translation
) !default;
```

The dictionary is a `map` where the `key` is a word or phrase(list space), and the `value` is a translation.&#x20;

|                           |             |
| ------------------------- | ----------- |
| word                      | translation |
| 'word'                    | translation |
| ('word-1', 'word-2')      | translation |
| (first word, second word) | translation |

The `key` can be also the name of the dictionary, for example, `class` to put translations only for the classes, or `var` for CSS variable name translations. For example.

|       |                                           |
| ----- | ----------------------------------------- |
| class | (prefix: spectre, suffix: end, small: sm) |
| var   | (prefix: s, suffix: e, small: sm)         |

### Set

To set the value of the global dictionary use [`dictionary.set()`](https://docs.angular-package.dev/sass/translator-v1.0.0/dictionary/dictionary.set) function.

### Get

To get the global dictionary use [`dictionary.get()`](https://docs.angular-package.dev/sass/translator-v1.0.0/dictionary/dictionary.get) function.

### Merge

To merge multiple dictionaries with the global dictionary use [`dictionary.merge()`](https://docs.angular-package.dev/sass/translator-v1.0.0/dictionary/dictionary.merge) function.
