# dictionary.variables

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

A global dictionary that is used on [`$dictionary-global`](#usddictionary-global-true) set on `true`.

```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()`](/sass/translator-v0.1.0/dictionary/dictionary.set.md) function.

### Get

To get the global dictionary use [`dictionary.get()`](/sass/translator-v0.1.0/dictionary/dictionary.get.md) function.

### Merge

To merge multiple dictionaries with the global dictionary use [`dictionary.merge()`](/sass/translator-v0.1.0/dictionary/dictionary.merge.md) function.

#### `$dictionary-global: true`

Indicates that translator uses global [`$dictionary`](#usddictionary-default).

```scss
// If `true` then each function of translator uses global `$dictionary`.
$dictionary-global: true;
```

To check whether dictionary global is available use [`dictionary.is-global()`](/sass/translator-v0.1.0/dictionary/dictionary.is-global.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.angular-package.dev/sass/translator-v0.1.0/dictionary/dictionary.variables.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
