docs: add a name mnemonic to every module README and the root modules table
This commit is contained in:
@@ -4,6 +4,8 @@ Namespaced translation catalogs loaded from plugin YAML, with locale fallback, p
|
||||
|
||||
`import "git.golem15.com/golem15/summercms/modules/phrasebook"`
|
||||
|
||||
**Name:** What you pack to speak the local language on holiday; it holds the translations.
|
||||
|
||||
## Overview
|
||||
|
||||
phrasebook owns every translatable string in a SummerCMS application. At boot, `phrasebook.Activate` loads the framework's own strings plus the `lang/` tree of every plugin that implements `pact.HasLang`, applies overrides from plugins that implement `pact.HasLangOverrides`, and publishes a single `phrasebook.Translator` on the `backpack.App`. Keys use the WinterCMS form `namespace::group.dot.path`, and message syntax follows Laravel (`:name` placeholders, `|` plural pipes), so it is the counterpart of WinterCMS's `Lang::get` / `trans_choice` and plugin `lang/` directories.
|
||||
|
||||
Reference in New Issue
Block a user