Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

[WIP] Create twig templates-based theme #99

Draft
wants to merge 23 commits into
base: main
Choose a base branch
from

Conversation

dsamojlenko
Copy link
Member

@dsamojlenko dsamojlenko commented Aug 26, 2021

Summary | Résumé

Working on a twig-based theme.

Translations

While working on the theme, ensure you are wrapping all strings with the translation function, specifying the cds-snc domain which we are sharing with the cds-base plugin. ie:

{{ __('String to be translated', 'cds-snc') }}

To extract strings and compile the .pot, .po, and .mo files, there is an npm command, same as in the cds-base plugin:

npm run update-translations

TODO:

  • Translation utils
  • Language switcher
  • Pagination
  • Breadcrumbs
  • Menu styling
  • Dynamic menu

@dsamojlenko dsamojlenko force-pushed the setup_timber_twig_theme_templates branch 2 times, most recently from bcc2110 to 28bce01 Compare August 26, 2021 19:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant