Skip to content

Option to define smartypants on a per language basis missing? #2037

@texnixe

Description

@texnixe

Describe the bug
I would have expected that it is possible to set smartypants on a per language basis in the language configuration files:

<?php

return [
    'code' => 'de',
    'default' => false,
    'direction' => 'ltr',
    'locale' => [
        'de_DE'
    ],
    'name' => 'Deutsch',
    'translations' => [

    ],
    'url' => NULL,
    'smartypants' => [
        'doublequote.open' => "start",
        'doublequote.close' => 'stop',
    ],
];

But this doesn't have any effect, it only works when configuring smartypants in the config, but then obviously without language specific settings.

Expected behavior
It should be possible to define language-specific smartypants options. Wrong syntax or not possible. Studying the source code it looks as if this feature is not implemented.

Kirby Version
Tested with 3.2.3

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions