Skip to content

Translation helper ({{t}} doesn't accept SafeString as argument #25770

@MiLaSen

Description

@MiLaSen

Issue Summary

Using SafeString as key for theme translation helper throws warning: "Theme translations {{t}} helper called without a translation key."
It is not possible, for example, to use result of concat helper as key for translation.

Steps to Reproduce

Code:
```
{{#with (concat "dog" "and" "cat" separator=" ") as |Key|}}
{{log (Key)}}
{{t (Key)}}
{{/with}}


### Ghost Version

6.10.3

### Node.js Version

22.13.1

### How did you install Ghost?

MacOS 13.7.8, install command: 'ghost install local'

### Database type

SQLite3

### Browser & OS version

_No response_

### Relevant log / error output

```shell
SafeString { string: 'dog and cat' }
[2025-12-21 10:01:55] WARN Theme translations {{t}} helper called without a translation key.

Code of Conduct

  • I agree to be friendly and polite to people in this repository

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions