mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-07-06 23:50:16 +02:00
refactor: move help content out of translations into locale-specific partials
Replace the instructions translation domain with plain HTML files under templates/backoffice/help/nl/. Each help/*.html.twig is now a locale dispatch shim that tries the current locale first and falls back to nl, so adding English (or any other language) is simply a matter of creating a help/en/ directory with the translated files — no code changes needed. Removes instructions+intl-icu.nl.xliff.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
<h6>{{ 'Add candidates'|trans({}, 'instructions') }}</h6>
|
||||
<p>{{ 'Enter one name per line. These are the players participating in this season.'|trans({}, 'instructions') }}</p>
|
||||
<p>{{ 'You can always add more candidates later via the Candidates tab. Use the same spelling of names you use in the game.'|trans({}, 'instructions') }}</p>
|
||||
{{ include([
|
||||
'backoffice/help/' ~ app.request.locale ~ '/season_add_candidates.html.twig',
|
||||
'backoffice/help/nl/season_add_candidates.html.twig',
|
||||
]) }}
|
||||
|
||||
Reference in New Issue
Block a user