Skip to content

Commit

Permalink
Fix typos in README (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Jan 24, 2024
1 parent 635f10d commit a9e75fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

Parsing WordPress translations in Twig/Timber templates has always been quirky and not very convenient. Especially since WordPress grabs translations from multiple sources (theme stylesheet, {block,theme}.json, block editor JS, PHP files).

Since WP-CLI is the recommanded way to create/update POT files, `timber/wp-i18n-twig` provides (almost native) Twig translation extraction by overriding the default `wp i18n make-pot`.
Since WP-CLI is the recommended way to create/update POT files, `timber/wp-i18n-twig` provides (almost native) Twig translation extraction by overriding the default `wp i18n make-pot`.

## Install

Because WP-CLI default commands are not meant to be overriden, there are two working ways to install `timber/wp-i18n-twig`:
Because WP-CLI default commands are not meant to be overridden, there are two working ways to install `timber/wp-i18n-twig`:

### Global

Expand Down Expand Up @@ -64,7 +64,7 @@ Adding translators comments in your Twig templates works like it would in PHP, p

## Limitations

To make this package work in any Twig environement, templates are not compiled to PHP but only parsed. This main benefit is that it's (almost) configuration agnostic (custom filters, functions, template location).
To make this package work in any Twig environment, templates are not compiled to PHP but only parsed. This main benefit is that it's (almost) configuration agnostic (custom filters, functions, template location).

However, since Twig is highly configurable, there are still some (minor) limitations.

Expand Down

0 comments on commit a9e75fe

Please sign in to comment.