Class SerenityLocalizationKeyValidator
Validates the translation keys designers type into Serenity assets (any field with its
IsTranslating<Field> toggle on) against the project's Unity Localization string tables.
The GUI-free engine behind SerenityLocalizationKeyValidatorWindow, also driven headlessly by the
project validation runner.
Inherited Members
Namespace: Serenity.Localization.Installation.Settings.Editor
Assembly: Serenity.UnityLocalization.Installation.Editor.dll
Syntax
public static class SerenityLocalizationKeyValidator
Fields
ValidatorName
Validator tag used on issues and in the report's validators-run list.
Declaration
public const string ValidatorName = "localizationKeys"
Field Value
| Type | Description |
|---|---|
| string |
Methods
GatherDefinedKeys()
Collects every shared key defined across all Unity Localization string table collections.
Declaration
public static HashSet<string> GatherDefinedKeys()
Returns
| Type | Description |
|---|---|
| HashSet<string> |
HasAnyStringTableCollection()
True when the project has at least one Unity Localization string table collection.
Declaration
public static bool HasAnyStringTableCollection()
Returns
| Type | Description |
|---|---|
| bool |
Run(SerenityValidationReport)
Runs the localization-key scan and appends findings to the report.
Declaration
public static void Run(SerenityValidationReport report)
Parameters
| Type | Name | Description |
|---|---|---|
| SerenityValidationReport | report | The report to append to. |