Code layout
Architecture
Three parsers feed a single index, with no Composer dependency. Each parser produces "compact entries" in the same format, aggregated then serialised to JSON.
| Class | Role |
|---|---|
TranslationIndex | Build, search, write a translation, patch an entry. Heart of the module. |
XliffParser | Reads XLIFF 1.2 (PS 8/9): locale and domain detection, source↔target fallback. |
LegacyPhpParser | Reads legacy $_MODULE[...] files; inclusion bounded to the PrestaShop root. |
TemplateParser | Extracts strings from Smarty ({l s= d=}) and Twig (|trans, {% trans %}) templates. |