Skip to content

1.2.0

Choose a tag to compare

@medienbaecker medienbaecker released this 09 Jun 10:58
· 1 commit to main since this release

Three new options to exclude content from the calculation. Some content keeps a language below 100% even when nothing's wrong, like a language variable that reads the same as the default in most languages, a field that doesn't need translating most of the time, or a whole page type you don't track. Now there are three new callback options:

'medienbaecker.translation-progress' => [
    'ignoreVariable' => fn ($key) => $key === 'recipe.time',
    'ignoreField'    => fn ($name, $template) => $template === 'recipe' && $name === 'duration',
    'ignorePage'     => fn ($page) => $page->intendedTemplate()->name() === 'recipe',
],

All three default to null, so upgrading changes nothing until you opt in.