Skip to content

[Bug] dot notation doesn't work properly #19

@valh1996

Description

@valh1996

Hi,

I use real sentences as translation keys which can terminate by a dot (.).

The problem is that your current system will translate this (french) :

return [
    "A new verification link has been sent to the email address you provided during registration." => "Un nouveau lien de vérification a été envoyé à l'adresse e-mail que vous avez indiquée lors de votre inscription.",
    "A new verification link has been sent to your email address." => "Un nouveau lien de vérification a été envoyé à votre adresse e-mail.",
]

to german :

return [
'A new verification link has been sent to the email address you provided during registration' => [
        '' => 'Ein neuer Bestätigungslink wurde an die E-Mail-Adresse gesendet, die Sie bei der Registrierung angegeben haben.'
    ],
    'A new verification link has been sent to your email address' => [
        '' => 'Ein neuer Bestätigungslink wurde an Ihre E-Mail-Adresse gesendet.'
    ],
]

The correction would be that in the case where the translation key ends with a dot, with nothing behind it that it doesn't create an unnecessary second level.

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions