---
name: "diag_localized"
type: command
status: ok
groups: ["Strings", "Localization"]
arma3_since: "2.04"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/diag_localized
revid: 377085
updated: 2026-01-01T09:43:24Z
---

# diag_localized

*Command · Strings, Localization · Arma 3 v2.04*

## Description

Returns array with all [localize](../commands/localize.md)d keys from the given stringtable or the array of all stringtables names if empty string `""` is given. Common stringtables are: `"Global"`, `"Mission"`, `"Campaign"`.

## Syntax

```sqf
diag_localized stringtable
```

**Parameters:**

- `stringtable`: [String](../topics/String.md) - stringtable name or ""

**Returns:** [Array](../topics/Array.md) [String](../topics/String.md)s - see description

## Examples

### Example 1

```sqf
private _randomKey = selectRandom diag_localized "Global";
hint format ["Key: %1\nValue: %2", _randomKey, localize _randomKey];
```

### Example 2

```sqf
private _allTables = diag_localized "";
```

### Example 3

```sqf
diag_localized "Global" select 0; // "$STR_A3_SHOWCASE_SLINGLOADING_15_AMMODROPPED_PIL_0"
```

## See also

[localize](../commands/localize.md) · [isLocalized](../commands/isLocalized.md) · [getTextRaw](../commands/getTextRaw.md) · Stringtable.csv · Stringtable.xml · [BIS_fnc_localize](../functions/BIS_fnc_localize.md)

<sub>Source: [BI Community Wiki — diag localized](https://community.bistudio.com/wiki/diag_localized) (revision 377085).</sub>
