Cms: Subject line in forms is not localisable

Created on 10 Dec 2020  路  3Comments  路  Source: statamic/cms

Bug Description

The subject line in forms is not localisable.

How to Reproduce

Make a form on a localised site, use {{ trans:whatever.string }} in the subject field in the form builder. Won't translate in the actual mail.

Environment

Statamic 3.0.34 Pro
Laravel 8.18.1
PHP 7.4.10
No addons installed

Install method (choose one):

  • Fresh install from statamic/statamic
bug forms multisite

All 3 comments

I've just tested on my test site (it's just a single site) and it works like it should. With both a out-the-box Laravel translation file and a custom one.

I'll try again later with a multi-site to see if that is causing the issue.

Yeah it uses the default sites translation for all sites if I remember correctly.

Labeled my own issue as a bug as others confirmed it here https://github.com/statamic/cms/pull/2658

Was this page helpful?
0 / 5 - 0 ratings

Related issues

skoontastic picture skoontastic  路  4Comments

aerni picture aerni  路  4Comments

ReneWeCode picture ReneWeCode  路  3Comments

AndreasSchantl picture AndreasSchantl  路  3Comments

jcohlmeyer picture jcohlmeyer  路  4Comments