Scanning

In your '
LSDE
' project, codebase scanner configuration is done via
the Patterns section
.
Create a pattern
After creating a new (initially empty, for example) pattern instance:
Fill in the regular expression ('Regex') that will be used to capture groups in your codebase.
You must specify the group that captures your 'i18n' key in this section.
You must have at least 1 capturing group.
Learn more about regex groups

Display i18n keys
Once the 'Regex' is created, the synchronization of results is real-time.
Open the code scanner window to observe its results in real time.
If no key is selected in the tree view, no filter will be applied, and the scanner will display all results.

However, if you select a key:
The system will filter out unrelated parent and sibling keys.
Thanks to hierarchical propagation, selecting a folder will display all its child keys.
Example:
Folder selection:
A.B.CAll keys containing at least this group will also be displayed:
A.B.C.dA.B.C.d.e.fTo display captured keys that '
LSDE
' cannot associate (missing keys), check this option.
It also allows filtering existing keys.
If this option is disabled, '
LSDE
' displays missing keys found in your source code, mixed with existing keys.
Test your pattern

To verify that your pattern behaves as expected, open the 'Test' tab.
Paste source code from your project into it to observe the captures made.
Understand your Regex
To understand your 'Regex' and its groups, use a tool like
regexr
.
Copy and paste your 'Regex' into the dedicated space.
javascript[^\\\\\\\\w_\\\\\\\\-\\\\\\\\$]t\\\\\\\\(\\\\\\\\s*(?:['\\\\\\\])?(?:([^\\\\\\\\s:'\\\\\\\)]+):)?([^\\\\\\\\s'\\\\\\\),]+)(?:['\\\\\\\])?\\\\\\\\s*(?:,\\\\\\\\s*(\\\\\\\\{[\\\\\\\\s\\\\\\\\S]*?(?:defaultValue\\\\\\\\s*:\\\\\\\\s*(['\\\\\\\`])((?:\\\\\\\\\\\\\\\\.|(?!\\\\\\\\4)[\\\\\\\\s\\\\\\\\S])*?)\\\\\\\\4)[\\\\\\\\s\\\\\\\\S]*?\\\\\\\\}|\\\\\\\\{[\\\\\\\\s\\\\\\\\S]*?\\\\\\\\})\\\\\\\\s*)?\\\\\\\\)
Paste source code from your project containing the keys to be captured (from your framework or text engine).
Click on a capture to activate it.
Then select 'Detail'.
Identify the index of the group where your 'Regex' places the desired capture.
With this 'Regex', you will find that it captures your key in group 2.
You will then need to inform '
LSDE
' that the key is located in this group, as illustrated in the previous image.
The system can then execute this 'Regex' and use this capture for various telemetry services.