> For the complete documentation index, see [llms.txt](https://docs.angular-package.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.angular-package.dev/sass/translator-v1.0.0/dictionary/dictionary.pick.md).

# dictionary.pick()

The `dictionary.pick()` function returns dictionaries from a [global dictionary](/sass/translator-v1.0.0/dictionary/dictionary.variables.md#usddictionary-default) of the associated [`$keys`](#usdkeys...).

{% code lineNumbers="true" %}

```scss
// Variables.
@use 'dictionary.variables' as variables;

// Modules.
@use '../../../map';

// The `translator.dictionary-pick()` or `dictionary.pick()` function.
@function pick($keys...) {
  @return map.pick(variables.$dictionary, $keys...);
}
```

{% endcode %}

{% embed url="<https://github.com/angular-package/sass/blob/main/translator/dictionary/_dictionary.pick.function.scss>" %}

### Parameters

#### `$keys...`

Keys to pick the dictionaries from a [global dictionary](/sass/translator-v1.0.0/dictionary/dictionary.variables.md#usddictionary-default).

### Return

The return value is a dictionary consisting of dictionaries retrieved from a [global dictionary](/sass/translator-v1.0.0/dictionary/dictionary.variables.md#usddictionary-default) of the associated [`$keys`](#usdkeys...).

## Examples

```scss
// Use.
@use '@angular-package/sass/translator';

// Examples.
$-dictionary: (
  general: (word: słowo, (wrapper, wrap): owijka, technology: (action: akcja)),
  class: (prefix: spectre-prefix, suffix: spectre-suffix, calendars: (calendar: cal), labels: (label: lab)),
  prefix: spectre,
  suffix: end,
  separator: '--',
  var: (prefix: spectre, suffix: end)
);

$-test: translator.dictionary-merge(null, $-dictionary);

// Examples.
// Pick the key
@debug translator.dictionary-pick(general); // (general: (word: słowo, (wrapper, wrap): owijka, technology: (action: akcja)))

// Pick nested key
@debug translator.dictionary-pick((class, calendars)); // (calendars: (calendar: cal))

// Pick multiple keys
@debug translator.dictionary-pick(general, (class, calendars)); // (general: (word: słowo, (wrapper, wrap): owijka, technology: (action: akcja)), calendars: (calendar: cal))

```
