---
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: 379289
updated: 2026-10-30T23:46:42Z
---

# diag_localized

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

## Description

Returns array with all [localized](../commands/localize.md) keys from the given [stringtable](../topics/Stringtable.xml.md) 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) of [Strings](../topics/String.md) - 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](../topics/Stringtable.csv.md) · [Stringtable.xml](../topics/Stringtable.xml.md) · [BIS_fnc_localize](../functions/BIS_fnc_localize.md)

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